mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-11 06:36:24 +02:00
Update give
Moved kekse to separate file kekse.py Changed command from 'givedrink' to 'give' (according to function) Fixed Typos, changed messages to match type of item given to user
This commit is contained in:
@@ -2,10 +2,7 @@ import random
|
||||
|
||||
from FaustBot.Communication import Connection
|
||||
from FaustBot.Modules.PrivMsgObserverPrototype import PrivMsgObserverPrototype
|
||||
|
||||
kekse = ['einen Schokoladenkeks', 'einen Vanillekeks', 'einen Doppelkeks', 'keinen Keks',
|
||||
'einen Keks', 'einen Erdbeerkeks', 'einen Schokoladen-Cheesecake-Keks',
|
||||
'einen Glückskeks', 'einen Scherzkeks', 'einen Unglückskeks']
|
||||
from kekse import kekse
|
||||
|
||||
|
||||
class GiveCookieObserver(PrivMsgObserverPrototype):
|
||||
@@ -15,7 +12,7 @@ class GiveCookieObserver(PrivMsgObserverPrototype):
|
||||
|
||||
@staticmethod
|
||||
def help():
|
||||
return ".cookie - verteilt kekse; oder auch nicht"
|
||||
return ".cookie - verteilt Kekse; oder auch nicht"
|
||||
|
||||
def update_on_priv_msg(self, data: dict, connection: Connection):
|
||||
if data['message'].find('.cookie') == -1:
|
||||
|
||||
Reference in New Issue
Block a user