Skip to content

Instantly share code, notes, and snippets.

View Soheab's full-sized avatar
📚

Soheab Soheab

📚
  • 20:10 (UTC +01:00)
View GitHub Profile
@Soheab
Soheab / timezones.md
Last active March 30, 2024 12:36
See here all timezones supported by Python PyTz and ZoneInfo!

⬇️ End

ℹ️ Information
All supported timezones by the pytz package, Python's built-in ZoneInfo and probably others too.
Use Ctrl/CMD + F to look for a specific timezone or use the Jump URLs
❗ Important ZoneInfo is case sensitive. What this means is that ETC/... should be Etc/...
@Soheab
Soheab / 0-discord.Colour.md
Last active May 20, 2024 15:16
See everything related to discord.Colour in a clean way with their usages.

discord.Colour

See here every colour and method the discord.Colour class has.

Jump Links

Colours


Sparkly Changelog

This page keeps a detailed human friendly rendering of what's new and changed in specific versions for v2.1+.

If you want the be notified of any update, you can join my Support Server.

@Soheab
Soheab / clown 🤡.py
Created January 15, 2020 20:30
clown.
self.guild_detect = [336642139381301249]
self.channel_detect = [381963689470984203]
self.detect = []
self.lol = []
self.user_mes = []
@commands.Cog.listener()
async def on_message(self, message):
if message.author.bot:
return
@Soheab
Soheab / bikeshedding.md
Last active September 27, 2020 16:40
See here topics that are already discussed in the bikeshedding channel on the discord.py server.

This list is not in any order, older topics can be above newer ones.

Made by Soheab#6240
This gist probably won't be updated anymore.

Total topics here: 46

TIP :: You can use Ctrl + F (or Cmd + F on Mac) to search through this.

@Soheab
Soheab / API's.md
Last active November 13, 2024 01:25
See here some of the API's you can use in your discord bot or anything

Some API's for you.

See here some of the API's you can use in your discord bot or anything. For any help or questions on how to use one, please contact the owner of the API and not me.

A much bigger list of APIs can be found here


[TOKEN] = API requires a token to access some if not all endpoints.

The descriptions are mostly copied from the API, sometimes personal or from the dev.

@Soheab
Soheab / wait_for in command.md
Last active July 11, 2023 16:56
Examples for a wait_for in ext.commands.

This gist shows how to make the bot wait for a message or reaction after doing a command. This should not be copypasted.

Docs

Check the discord.py docs for a detailed explanation of how it all works internally and which kwargs it takes.

Commands

See here two commands, one waiting for any message in a channel and the other waiting for a reaction with a specific emoji.

Check

@Soheab
Soheab / supported_google_translate_languages.md
Last active May 2, 2022 11:40
See here all supported languages and their code that Google Translate supports.

Supported Google Translate Languages

⭐ Star if this is helpful to you. source

Afrikaans - af Irish -ga Albanian - sq Italian - it Arabic - ar Japanese - ja
Azerbaijani - az Kannada - kn Basque - eu Korean - ko Bengali - bn Latin - la
Belarusian - be Latvian - lv Bulgarian - bg Lithuanian - lt Catalan - ca Macedonian - mk
Malay - ms Maltese - mt Croatian - hr Norwegian - no Czech - cs Persian - fa
Danish - da Polish - pl Dutch - nl Portuguese - pt English - en Romanian - ro
@Soheab
Soheab / supported_google_translate_languages.md
Created May 30, 2021 18:05
See here all supported languages and their code that Google Translate supports.

Support Google Translate Languages

⭐ Star if this is helpful to you.

Afrikaans - af

Irish -ga

Albanian - sq

Italian - it

Arabic - ar

Japanese - ja

Azerbaijani - az

@Soheab
Soheab / wait_for_modal.md
Last active January 13, 2024 11:57
See how to wait for user input using a modal!

Wait for with a Modal

See here an overcomplicated way to wait for input from a user using a modal. Every step is explained using comments.

This is meant to replace Client.wait_for("message") for application commands.

Features

  • Easy way to construct a Modal with one text input field.
  • Easily pass a check from the constructor

Files