This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
database: | |
image: postgis/postgis:13-master | |
# Required when running on platform other than amd64, like Apple M1/M2: | |
# platform: linux/amd64 | |
volumes: | |
- ./data/database:/var/lib/postgresql/data | |
environment: | |
POSTGRES_USER: 'directus' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List, Dict, Any | |
from pincer.client import Client, middleware | |
from pincer.core.dispatch import GatewayDispatch | |
from pincer.core.http import HTTPClient | |
say_cmd = { | |
"name": "say", | |
"type": 1, | |
"description": "Send a message", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
from discord import Member | |
from discord.ext.commands import command, Bot, Context | |
from utilsx.discord import BotX, Cog | |
BOT_TOKEN = "XXXYOURBOTTOKENHEREXXX" | |
class MyBot(BotX): | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
from discord import Member | |
from discord.ext.commands import command, Bot, Context | |
from utilsx.discord import BotX, Cog | |
BOT_TOKEN = "XXXYOURBOTTOKENHEREXXX" | |
class MyBot(BotX): | |
def __init__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from discord.ext.commands import command, Bot, Context | |
from utilsx.discord import BotX, Cog | |
BOT_TOKEN = "XXXYOURBOTTOKENHEREXXX" | |
class MyBot(BotX): | |
def __init__(self): | |
super().__init__() | |
self.add_cog(CustomCommands(self)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from utilsx.discord import BotX | |
BOT_TOKEN = "XXXYOURBOTTOKENHEREXXX" | |
class MyBot(BotX): | |
pass | |
if __name__ == "__main__": |