Exemplo n.º 1
0
import discord
import os
from datetime import datetime
from discord.ext.commands import Bot
from discord import Intents
intents = Intents.all()

TOKEN = os.getenv('BOT_TOKEN')

bot = Bot(command_prefix='$', intents=intents)

bot.selected_channel = None
bot.bot_channels = {}
bot.selected_members = None
bot.vc_members = {}


# >>> HELPERS >>>
async def errorString(context, e):
    # used to output errors
    await context.send(f'```ml\nERROR: "{e}"```')


async def infoString(context, msg):
    # used to output any input
    await context.send(f'```ml\n{msg}```')


def genList(itr):
    # used to generate a spaced string from an interable
    txt = ''