def __init__(self, bot): self.bot = bot self.sdb = func_database.ServerDatabase() self.msg = func_msg_gen.MessageGenerator() self.prefix = func_prefix.Prefix() self.role_converter = commands.RoleConverter() self.channel_converter = commands.TextChannelConverter()
def __init__(self, bot): self.bot = bot self.udb = func_database.UserDatabase() self.sdb = func_database.ServerDatabase() self.idb = func_database.ItemDatabase() self.msg = func_msg_gen.MessageGenerator() self.helper = func_setting_helpers.SettingHelper(bot)
def __init__(self, bot): self.bot = bot self.msg = func_msg_gen.MessageGenerator() self.bj_reactions = { "ðŸ‡": "hit", "🇸": "stand", "🇩": "double down" } bj_embed = discord.Embed(title="Blackjack:", description=func_economy.bj_string_generator( self.bj_reactions)) bj_embed.set_footer(text="Play by pressing with the reactions below:") self.bj_embed = bj_embed self.udb = func_database.UserDatabase() self.cur = bot_settings.currency_name # TODO: change to use server setting
def __init__(self, bot): self.bot = bot self.sdb = func_database.ServerDatabase() self.msg = func_msg_gen.MessageGenerator() self.prefix = func_prefix.Prefix() self.helper = func_setting_helpers.SettingHelper(bot)
def __init__(self, bot): self.bot = bot self.msg_gen = func_msg_gen.MessageGenerator()
import ast import random import discord from discord.ext import commands import os import traceback import asyncio import bot_settings from functions import func_msg_gen, func_database, func_context, func_prefix, func_logs MSG_GENERATOR = func_msg_gen.MessageGenerator() UserDB = func_database.UserDatabase() ServerDB = func_database.ServerDatabase() Prefix = func_prefix.Prefix() Logger = func_logs.Log() class FullBot(commands.Bot): def __init__(self, command_prefix, **options): super().__init__(command_prefix, **options) self.logger = Logger.logging async def get_context(self, message, *, cls=func_context.FullContext): return await super().get_context(message, cls=cls) async def get_prefix(bot, message): # gets the bot prefix
def __init__(self, bot): self.bot = bot self.msg_generator = func_msg_gen.MessageGenerator() self.cache = None self.sdb = func_database.ServerDatabase() self.udb = func_database.UserDatabase()
def __init__(self, bot): self.bot = bot self.udb = func_database.UserDatabase() self.msg = func_msg_gen.MessageGenerator() self.prefix = func_prefix.Prefix()