if message.channel.is_private == True: pass elif message.channel.name == 'trivia': await trivia_module.correct_answer(client, message) if '(╯°□°)╯︵ ┻━┻' in message.content: await client.send_message(message.channel, '┬─┬ ノ( ゜-゜ノ) \n\n' +str(message.author.name) + ', what did the table do to you?') if bot.gpio_enabled == "yes": GPIO.output(statPin,0) @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') global serv serv = discord.utils.find(lambda m: m.name == bot.server_name, client.servers) #if not client.is_logged_in: # print('Logging in to Discord failed') # exit(1) client.run(bot.get_bot_credential('token')) try: GPIO.cleanup() except: pass
if bot.check_role(client, message, 'Admin') == True or bot.check_role(client, message, 'Trivia Admin') == True: await trivia_module.trivia_fncs(client, message) else: await client.send_message(message.channel, 'You do not have permission to do that.') if message.content.lower() == str(trivia.trivia_answer).lower(): if message.channel.is_private == True: pass elif message.channel.name == 'trivia': await trivia_module.correct_answer(client, message) if '(╯°□°)╯︵ ┻━┻' in message.content: await client.send_message(message.channel, '┬─┬ ノ( ゜-゜ノ) \n\n' +str(message.author.name) + ', what did the table do to you?') @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') global serv serv = discord.utils.find(lambda m: m.name == bot.server_name, client.servers) await remind_module.check(client) #if not client.is_logged_in: # print('Logging in to Discord failed') # exit(1) client.run(bot.get_bot_credential('Username'), bot.get_bot_credential('Password'))
if message.content.lower() == str(trivia.trivia_answer).lower(): if message.channel.is_private == True: pass elif message.channel.name == 'trivia': await trivia_module.correct_answer(client, message) if '(╯°□°)╯︵ ┻━┻' in message.content: await client.send_message( message.channel, '┬─┬ ノ( ゜-゜ノ) \n\n' + str(message.author.name) + ', what did the table do to you?') @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') global serv serv = discord.utils.find(lambda m: m.name == bot.server_name, client.servers) await remind_module.check(client) #if not client.is_logged_in: # print('Logging in to Discord failed') # exit(1) client.run(bot.get_bot_credential('Username'), bot.get_bot_credential('Password'))