def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json") self.reddit = praw.Reddit(client_id='zAMDWabp1WMohA', client_secret=self.config.reddit_token, password=self.config.reddit_password, user_agent='Hmn-Bot', username='******')
def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json") self.api = OsuApi(key=self.config.osu_token, connector=ReqConnector()) self.last_check_datetime = datetime.datetime.utcnow() self.tracking_channel = None self.tracked_users = self.get_tracked_users() self.tracker_task_loop.start()
def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json") self.tracked_member = None self.tracking_channel = None self.is_started = False self.tracked_act_status = False self.act_start_time = None
def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json") self.cc_table = tinydb.TinyDB('../db/cc-database.json') self.auto_cc_mode = False self.guild = self.bot.get_guild(id=int(self.config.guild_id)) self.mod_channel = self.guild.get_channel( channel_id=int(self.config.mod_channel_id)) self.counting_channel = self.guild.get_channel( channel_id=int(self.config.counting_channel_id)) self.cm_role = self.guild.get_role(role_id=int(self.config.cm_role_id)) self.cc_role = self.guild.get_role(role_id=int(self.config.cc_role_id)) self.cc_control_task.start()
def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json")
def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json") self.process = psutil.Process(os.getpid())
def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json") self.owm = pyowm.OWM(self.config.owm_token) self.timezone = 3 # utc+3 for turkey
def __init__(self, bot): self.bot = bot self.config = confparser.get("config.json") locale.setlocale(locale.LC_ALL, 'en_US.UTF8')
# 2020 Emir Erbasan (humanova) # MIT License, see LICENSE for more details import bot from discord import Intents from utils import confparser, permissions config = confparser.get("config.json") intents = Intents.default() intents.presences = True intents.members = True print("Logging in...") _bot = bot.Bot(command_prefix=config.prefix, prefix=config.prefix, command_attrs=dict(hidden=True), intents=intents) _bot.run(config.token)