Commit ae624531 authored by Jens Langhammer's avatar Jens Langhammer

add special_queries for joke questions

parent eeb5d8a5
......@@ -7,6 +7,11 @@ from discord.ext import commands
class ARKCog:
"""ARK lookup Cog"""
special_queries = {
'@everyone': "Hah. Nice try. Being very funny. Cheeky cunt.",
':(){ :|: & };: -': "This is a python bot, not a bash bot you nimwit."
}
def __init__(self, bot):
self.bot = bot
......@@ -34,6 +39,9 @@ class ARKCog:
Reference of fields can be found here: https://odata.intel.com/
"""
# Check special queries first
if query in self.special_queries:
return self.special_queries[query]
cpu_data = ARKCog.do_lookup(query)
if not cpu_data:
await self.bot.say("I couldn't find anything matching `%s`" % query)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment