-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_4apr2019
88 lines (60 loc) · 2.53 KB
/
main_4apr2019
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import json
import requests
import time
TOKEN = '' #insert token here
URL = "https://api.telegram.org/bot{}/".format(TOKEN)
from telegram.ext import Updater, CommandHandler
def starts(bot, update):
update.message.reply_text("I'm alive!")
time.sleep(1)
update.message.reply_text("Wait, that's not possible. I'm just a bot after all...")
time.sleep(1)
update.message.reply_text("Anyway, nice to meet you!")
def wedding(bot,update):
update.message.reply_text("Tsk, shame on you, forgetting the details of this joyous occasion. If I had my way, I'd have you hanged for blasphemy.")
time.sleep(3)
update.message.reply_text("Anyway. leong and naki's wedding is officially on 23 March, 6pm, Flower Dome, Gardens By The Bay. Don't wear jeans!")
def pornstar(bot,update):
update.message.reply_text("naki thinks she can be a pornstar")
def wong(bot,update):
update.message.reply_text("wong is a brownhaired lesbian twink")
def leong(bot,update):
update.message.reply_text("hoho homo! I love mob psycho! You're an Oreo O!")
def naki(bot,update):
update.message.reply_text("MY BUTTHOLE IS ON FIRE")
def joo(bot,update):
update.message.reply_text("I want to sleep but my hair is still wet :(((((")
def jy(bot,update):
update.message.reply_text("I only love kang")
def list(bot,update):
update.message.reply_text("Currently available commands: \n /starts \n /wedding \n /pornstar \n /wong \n /leong \n /naki \n /joo \n /jy")
def main():
# Create Updater object and attach dispatcher to it
updater = Updater(TOKEN)
dispatcher = updater.dispatcher
print("Bot is alive!")
# Add 'start' command handler to dispatcher
starts_handler = CommandHandler('starts',starts)
dispatcher.add_handler(starts_handler)
wedding_handler = CommandHandler('wedding',wedding)
dispatcher.add_handler(wedding_handler)
pornstar_handler = CommandHandler('pornstar',pornstar)
dispatcher.add_handler(pornstar_handler)
wong_handler = CommandHandler('wong',wong)
dispatcher.add_handler(wong_handler)
leong_handler = CommandHandler('leong',leong)
dispatcher.add_handler(leong_handler)
naki_handler = CommandHandler('naki',naki)
dispatcher.add_handler(naki_handler)
joo_handler = CommandHandler('joo',joo)
dispatcher.add_handler(joo_handler)
jy_handler = CommandHandler('jy',jy)
dispatcher.add_handler(jy_handler)
list_handler = CommandHandler('list',list)
dispatcher.add_handler(list_handler)
# Start the bot
updater.start_polling()
# Run the bot until you press Ctrl-C
updater.idle()
if __name__ == '__main__':
main()