-
Notifications
You must be signed in to change notification settings - Fork 0
/
langerjan.py
35 lines (32 loc) · 953 Bytes
/
langerjan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import sopel.module
import time
@sopel.module.commands('dance')
@sopel.module.example('.dance')
def helloworld(bot, trigger):
"""Lets the bot execute a dancing script"""
bot.say('<(^.^<)')
time.sleep(0.4)
bot.say('<(^.^)>')
time.sleep(0.4)
bot.say('(>^.^)>')
time.sleep(0.4)
bot.say('(7^.^)7')
time.sleep(0.4)
bot.say('(>^.^<)')
@sopel.module.rule('^\s*[Mm]+[Oo]+[Ii]+[Nn]+\s*$')
@sopel.module.example('Moin','moin')
def moin(bot,trigger):
"""Lets the bot reply to a greeting"""
bot.say('moin')
@sopel.module.rule('^\s*[Dd]roggelbecher([?!]+)?\s*$')
@sopel.module.example('Droggelbecher')
def droggelbecher(bot,trigger):
"""Replys Droggelbecher"""
if trigger.group(1) is None:
bot.say('Droggelbecher')
elif "?" in trigger.group(1):
bot.say('Droggelbecher!')
elif "!" in trigger.group(1):
bot.say('Droggelbecher?')
else:
bot.say('Droggelbecher')