def __init__(self, bot): self.ccolor = bColors.bColors() self.bot = bot self.commandInfo = ET.parse( os.path.abspath('./data/help.xml')).getroot() self.commandList = ET.parse( os.path.abspath('./data/categories.xml')).getroot()
def __init__(self, bot): self.bot = bot load_dotenv() R_SECRET = os.getenv('REDDIT_SECRET') R_ID = os.getenv('REDDIT_ID') self.r_client = praw.Reddit( client_secret=R_SECRET, client_id=R_ID, user_agent=f'discordbot:{R_ID}:v0.2 (by u/Remaked)') self.ccolor = bColors.bColors()
def __init__(self, bot): bot.current_image = 0 self.bot = bot self.ccolor = bColors.bColors() self.modules = [ 'help', 'smallutils', 'image', 'karma', 'kasino', 'multimedia', 'economy' ] bot.owner_ids = [ '108305736131440640', # OLLIE '153929916977643521', # BATTLERUSH '205704051856244736', # SPRÜTZ '299478604809764876', # AARON '223932775474921472' # LUKAS ] bot.restricted_commands = [ 'bansub', 'unbansub', 'reload', 'restart', 'checkpost', 'openkasino', 'refreshkasino', 'closekasino', 'lockkasino' ] self.loop = None
def __init__(self, bot): self.bot = bot self.ccolor = bColors.bColors() self.saveIterations = 0 self.backups = [] self.maxbackups = 20
def __init__(self, bot): self.bot = bot self.ccolor = bColors.bColors()
# -*- coding: utf-8 -*- import os import sys import discord from discord.ext import commands from dotenv import load_dotenv from cogs import bColors # COLORS FOR CONSOLE ERRORS ccolor = bColors.bColors() # LOAD ENV VARIABLES FROM .ENV (NOT MANAGED THROUGH VCS) load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') # NECESSARY BOT STUFF intents = discord.Intents(messages=True, guilds=True, reactions=True, members=True) bot = commands.Bot(command_prefix='§', description="ANTICOMPSCI", intents=intents) bot.remove_command('help') # EVENT HANDLING @bot.event async def on_message(message): await bot.process_commands(message)
def __init__(self, bot): self.bot = bot self.ccolor = bColors.bColors() self.__init_kasino_db() self.__init_bets_db()
def __init__(self, bot): self.bot = bot self.ccolor = bColors.bColors() self.__init_trousch_db()