I hereby claim:
- I am jakemakesstuff on github.
- I am jakemakesstuff (https://keybase.io/jakemakesstuff) on keybase.
- I have a public key ASAUPDjp4KUH9AvRArvUcjk8tmqrdAEw9_0CCcJbe5Tpiwo
To claim this, I am signing this object:
from google.cloud import firestore | |
# Imports go here. | |
db = firestore.Client() | |
# Defines the Firestore client. | |
class SecretsManager: | |
"""Handles secrets from the Firestore DB.""" | |
def __getitem__(self, key): |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import discord | |
import os | |
import logging | |
import datetime as dt | |
import random | |
import asyncio | |
import re | |
import rethinkdb as r | |
# Imports go here. |
import discord | |
import random | |
import logging | |
import os | |
# Imports go here. | |
ramsay_quotes = [ | |
"YOU FUCKING DONKEY!", | |
"What are you? AN IDIOT SANDWICH.", | |
"GET OUT!", |
^]:: | |
WinGetActiveTitle, WindowName | |
If InStr(WindowName, "PyCharm") { | |
Send, ^s | |
RegExMatch(WindowName, "[A-Z]:\\(([a-zA-Z0-9\.]){1,}(\\){0,}){1,}", FoundRegex) | |
if FoundRegex { | |
FormatTime, PCTimeFormatted | |
ToRun := "git.exe commit -a -m " . """" . "Save and commit from Jake's AHK script [PC time/date " . PCTimeFormatted . "]" . """" | |
RunWait, %ToRun%, %FoundRegex%, Hide | |
Run, git push, %FoundRegex%, Hide |
from discord.ext import commands | |
from shared import get_guild, get_wallet,\ | |
render_emoji, save_wallet | |
from ext_utils import FormattedEmbed | |
import discord | |
# Imports go here. | |
class Balance: | |
def __init__(self, dclient): |
So you added Cube or a bot based on Cube to your server? Awesome! Let's set this up! Please note commands in this tutorial are based on the prefix c!
and the prefix for custom instances of the bot may be different.
You will want 2 roles which contain the following (not case sensitive and they just need to contain it, not be it):
staff
- You will give this to your staff. This contains everything someone will need to moderate a server using this bot.manager
or management
- You will give this to the highest up people on your server. These people will have permissions to manage the bot.userbot = False | |
# Defines if it is a userbot or not. | |
token = "" | |
# Insert your token here. | |
import discord, logging, random | |
# Imports go here. | |
logging.basicConfig(level=logging.INFO) |
token = "" | |
# Insert your user token here. | |
prefix = "!" | |
# Here is the prefix. Feel free to change if you want. | |
tree = "🎄" | |
# A unicode christmas tree. | |
import discord |