Skip to content

Instantly share code, notes, and snippets.

View scragly's full-sized avatar

scragly

  • Queensland, Australia
View GitHub Profile
@scragly
scragly / update_notes.md
Last active August 27, 2021 01:27
Gaius Update Notes

This is adapted from the original txt file written by Holo

Gaius Rewrite Update

To be rolled out on 28th of August. Docs still being updated.

Once the rewrite is deployed, we will be notified by Holo via an announcement and the bot will stop working temporarily until you migrate.

To migrate, send !?migrate in your server and follow the prompts.

Keybase proof

I hereby claim:

  • I am scragly on github.
  • I am scragly (https://keybase.io/scragly) on keybase.
  • I have a public key ASBLX_6XSetAV0UqVo5t-fZvN4kp709nOfRHTEvuI4E8Gwo

To claim this, I am signing this object:

@scragly
scragly / README.md
Last active November 14, 2020 15:24
QBittorrent WebAPI script for getting the size of all torrents.

Requires Python 3.6+

Only 3rd party dependancy is the Requests library. Install it with: python3 -m pip install requests

@scragly
scragly / learning_dpy.md
Last active March 27, 2024 21:45
Learning discord.py
@scragly
scragly / local_embed.md
Created October 28, 2018 03:27
Local Image File Usage in Embeds
f = discord.File("some_file_path", filename="image.png")
e = discord.Embed()
e.set_image(url="attachment://image.png")
await messagable.send(file=f, embed=e)

This allows you to use a local image located with the bots files, instead of uploading first and then specifying that uploaded image's url.

@scragly
scragly / activities.md
Created October 28, 2018 03:12
Activity updates on discord.py
# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))

# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))

# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))
@scragly
scragly / discord_emoji.md
Last active May 28, 2024 11:22
Emoji for Discord Bots

Discord Emoji

Note: This is written for those using Python 3 and discord.py, so if you're using something else please reference the relevant documentation for your language or library if you choose to use this as a general reference.

On Discord, there are two different emoji types:

Each needs to be handled differently, as while unicode emoji are just simple unicode characters, Discord custom emoji are special objects available only in Discord, belonging to a specific Discord guild and having their own snowflake ID.