async def on_message(message): chat_message = message.content.lower() if DEBUG: print(str(message.author) + '\n' + str(chat_message)) if message.author == client.user: return # if Wade uses AoE shortcuts, reply with their meaning if message.author.id == 474091918050066432: if '11' in chat_message: herb_laugh = get_herb_laugh_from_file() await message.channel.send(file=herb_laugh) else: taunt = get_aoe_taunt(AOE_TAUNTS_DICT, chat_message) if taunt: response = embed_response(taunt) await message.channel.send(embed=response) # if you @ the bot it beeps or boops if any(id in chat_message for id in [BOT_USER_ID, BOT_ROLE_ID]): beep_boop = get_random_beep_boop() response = embed_response(beep_boop) await message.channel.send(embed=response) if 'robot' in chat_message: friendly_message = get_random_friendly_advice(FRIENDLY_ROBOT_ADVICE) response = embed_response(friendly_message) await message.channel.send(embed=response) if 'regulations' in chat_message: response = embed_response('Praise be the regulations') await message.channel.send(embed=response) if 'rock' in chat_message and 'fact' in chat_message: await message.add_reaction(emoji='<:rockfact:772801261103742976>') rock_message = get_random_rock_fact(ROCK_FACTS) response = embed_response(rock_message) await message.channel.send(embed=response) if 'guess the soup' in chat_message: await message.add_reaction(emoji='<:soupguess:806255878902513724>') if 'rule' in chat_message: response = embed_guess_the_soup_rules() await message.channel.send(embed=response) if 'tv games schedule' in chat_message: schedule = scrape_all_day_events_from_calender(TV_GAMES_AGENDA) print_schedule = embed_games_schedule(schedule) await message.channel.send(embed=print_schedule) if 'movie schedule' in chat_message: schedule = scrape_timed_events_from_calender(MOVIE_AGENDA) print_schedule = embed_movie_schedule(schedule) await message.channel.send(embed=print_schedule) sm_assistant_msgs = [ 'shitemaster email', 'submit shitemaster', 'submit task', 'sm email', 'shitemasters assistant email', 'shitemaster\'s assistant email', 's***e email' ] if any(x in chat_message.lower() for x in sm_assistant_msgs): embed = embed_shitemaster_email(SHITEMASTER_EMAIL) await message.author.send('', embed=embed) if S***E == '1': if 'shitemas' in chat_message: response = embed_response( 'SHITEmas is the most wonderful time of the year.') await message.channel.send(embed=response) if 's***e schedule' in chat_message: schedule = scrape_timed_events_from_calender(SHITEMAS_AGENDA) print_schedule = embed_shitemas_schedule(schedule) await message.channel.send(embed=print_schedule) await client.process_commands(message)
async def full_schedule(ctx): schedule = scrape_timed_events_from_calender(MOVIE_AGENDA) print_schedule = embed_movie_schedule(schedule) await ctx.send(embed=print_schedule)
async def next_scheduled(ctx): schedule = scrape_timed_events_from_calender(MOVIE_AGENDA) print_schedule = embed_movie_schedule(schedule, first=True) await ctx.send(embed=print_schedule)
async def on_message(message): chat_message = message.content.lower() if DEBUG: print(str(message.author) + '\n' + str(chat_message)) if message.author == client.user: return # if Wade uses AoE shortcuts, reply with their meaning if WADE_ID and message.author.id == WADE_ID: taunt = get_aoe_taunt(AOE_TAUNTS_DICT, chat_message) if taunt: response = embed_response(taunt) await message.channel.send(embed=response) # if you @ the bot it beeps or boops if any(id in chat_message for id in [BOT_USER_ID, BOT_ROLE_ID]): beep_boop = get_random_beep_boop() response = embed_response(beep_boop) await message.channel.send(embed=response) if 'orb' in chat_message and 'i have counted' not in chat_message: orbified_message = re.sub('[aeiou]', 'orb', chat_message) await message.channel.send(orbified_message) if 'nerts' in chat_message: response = get_random(NERTS) response = embed_response(response) await message.channel.send(embed=response) if 'robot' in chat_message: friendly_message = get_random(FRIENDLY_ROBOT_ADVICE) response = embed_response(friendly_message) await message.channel.send(embed=response) if 'regulations' in chat_message: response = embed_response('Praise be the regulations') await message.channel.send(embed=response) if 'rock' in chat_message and 'fact' in chat_message: await message.add_reaction(emoji='<:rockfact:772801261103742976>') rock_message = get_random(ROCK_FACTS) response = embed_response(rock_message) await message.channel.send(embed=response) if 'guess the soup' in chat_message: await message.add_reaction(emoji='<:soupguess:806255878902513724>') if 'rule' in chat_message: response = embed_guess_the_soup_rules() await message.channel.send(embed=response) if 'tv' in chat_message and 'game' in chat_message and 'help' in chat_message: tv_games_help = get_random(TV_GAMES_HELP) response = embed_response(tv_games_help) await message.channel.send(embed=response) if 'tv games schedule' in chat_message: schedule = scrape_events_from_calender(TV_GAMES_AGENDA) print_schedule = embed_games_schedule(schedule) await message.channel.send(embed=print_schedule) if 'movie schedule' in chat_message: schedule = scrape_events_from_calender(MOVIE_AGENDA) print_schedule = embed_movie_schedule(schedule) await message.channel.send(embed=print_schedule) if any(x in chat_message.lower() for x in SHITEMASTER_HELP): embed = embed_shitemaster_email(SHITEMASTER_EMAIL) await message.author.send('', embed=embed) if S***E == '1': if 'shitemas' in chat_message: response = embed_response( 'SHITEmas is the most wonderful time of the year.') await message.channel.send(embed=response) if 's***e schedule' in chat_message: schedule = scrape_events_from_calender(SHITEMAS_AGENDA) print_schedule = embed_shitemas_schedule(schedule) await message.channel.send(embed=print_schedule) await client.process_commands(message)