-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
50 lines (45 loc) · 1.32 KB
/
run.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from slackbot.bot import Bot
from slackbot.bot import listen_to
import slackbot_settings, json, requests
import random as rd
@listen_to('筋肉ルーレット')
def roulette(message):
menu = ['腕立て伏せ', '腹筋', 'スクワット', 'フロントプランク', 'ヒップリフト']
message.reply(menu[rd.randint(0, (len(menu) - 1))])
message.react('muscle')
@listen_to('muscle')
@listen_to('マッスル')
def muscle(message):
try:
message.send(':muscle::muscle:')
message.react('muscle')
except Exception as e:
print(type(e))
@listen_to('しない')
@listen_to('ダメだ')
@listen_to('だめだ')
@listen_to('つかれた')
@listen_to('疲れた')
def anger(message):
try:
message.reply('筋肉あってこそ人生だ:rage:')
message.react('volcano')
except Exception as e:
print(type(e))
@listen_to('ダブルバイセプス')
@listen_to('ラットスプレッド')
@listen_to('サイドチェスト')
@listen_to('サイドトライセプス')
@listen_to('アブドミナル & サイ')
@listen_to('アブドミナル&サイ')
@listen_to('モストマスキュラー')
@listen_to('オリバーポーズ')
def muscle(message):
try:
message.send('キレてるキレてるー!! :muscle::muscle:')
message.react('muscle')
except Exception as e:
print(type(e))
if __name__ == "__main__":
bot = Bot()
bot.run()