-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.py
178 lines (161 loc) · 8.52 KB
/
main.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# MIT License
# Copyright (c) 2020 Anil Chauhan // This file is part of ZeroTsu
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import yaml
from telegram import BotCommand
from telegram.ext import Updater
from telegram import Update
import logging
from telegram.ext import (
Application,
CallbackContext,
CommandHandler,
CallbackQueryHandler
)
from bot.start import start
from bot.help import help, chelp
from bot.nekos import *
from bot.nekos_fun import asfile
# load config
try:
CONFIG = yaml.load(open('config.yml', 'r'), Loader=yaml.SafeLoader)
except FileNotFoundError:
print("Read README.md file again. you missed something.")
quit(1)
except Exception as eee:
print(
f"Ah, look like there's error(s) while trying to load your config. It is\n!!!! ERROR BELOW !!!!\n {eee} \n !!! ERROR END !!!"
)
quit(1)
# Enable logging
logging.basicConfig(
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO
)
logger = logging.getLogger(__name__)
COMMANDS = [
BotCommand('start', 'check I\'m alive uwu'),
BotCommand('neko', 'Sends Random SFW Neko source Images.'),
BotCommand('feet', 'Sends Random Anime Feet Images.'),
BotCommand('yuri', 'Sends Random Yuri source Images.'),
BotCommand('trap', 'Sends Random Trap source Images.'),
BotCommand('futanari', 'Sends Random Futanari source Images.'),
BotCommand('hololewd', 'Sends Random Holo Lewds.'),
BotCommand('lewdkemo', 'Sends Random Kemo Lewds'),
BotCommand('sologif', 'Sends Random Solo GIFs.'),
BotCommand('cumgif', ' Sends Random Cum GIFs.'),
BotCommand('erokemo', 'Sends Random Ero-Kemo Images.'),
BotCommand('lesbian', 'Sends Random Les Source Images.'),
BotCommand('wallpaper', 'Sends Random Wallpapers.'),
BotCommand('lewdk', 'Sends Random Kitsune Lewds.'),
BotCommand('ngif', 'Sends Random Neko GIFs.'),
BotCommand('tickle', 'Sends Random Tickle GIFs.'),
BotCommand('lewd', 'Sends Random Lewds.'),
BotCommand('feed', 'Sends Random Feeding GIFs.'),
BotCommand('eroyuri', 'Sends Random Ero-Yuri source Images.'),
BotCommand('eron', 'Sends Random Ero-Neko source Images.'),
BotCommand('cum', 'Sends Random Cum Images.'),
BotCommand('bjgif', 'Sends Random Blow Job GIFs.'),
BotCommand('bj', 'Sends Random Blow Job source Images.'),
BotCommand('nekonsfw', 'Sends Random NSFW Neko source Images.'),
BotCommand('solo', 'Sends Random NSFW Neko GIFs.'),
BotCommand('kemonomimi', 'Sends Random KemonoMimi source Images.'),
BotCommand('avatarlewd', 'Sends Random Avater Lewd Stickers.'),
BotCommand('gasm', 'Sends Random Orgasm Stickers.'),
BotCommand('poke', 'Sends Random Poke GIFs.'),
BotCommand('anal', 'Sends Random Anal GIFs.'),
BotCommand('hentai', 'Sends Random Hentai source Images.'),
BotCommand('avatar', 'Sends Random Avatar Stickers.'),
BotCommand('erofeet', ' Sends Random Ero-Feet source Images.'),
BotCommand('holo', 'Sends Random Holo source Images.'),
BotCommand('tits', 'Sends Random Tits source Images.'),
BotCommand('pussygif', 'Sends Random Pussy GIFs.'),
BotCommand('holoero', 'Sends Random Ero-Holo source Images.'),
BotCommand('pussy', 'Sends Random Pussy source Images.'),
BotCommand('hentaigif', 'Sends Random Hentai GIFs.'),
BotCommand('classic', 'Sends Random Classic Hentai GIFs.'),
BotCommand('kuni', 'Sends Random Pussy Lick GIFs.'),
BotCommand('waifu', 'Sends Random Waifu Stickers.'),
BotCommand('kiss', 'Sends Random Kissing GIFs.'),
BotCommand('femdom', 'Sends Random Femdom source Images.'),
BotCommand('cuddle', 'Sends Random Cuddle GIFs.'),
BotCommand('erok', 'Sends Random Ero-Kitsune source Images.'),
BotCommand('foxgirl', 'Sends Random FoxGirl source Images.'),
BotCommand('titsgif', ' Sends Random Tits GIFs.'),
BotCommand('smug', 'Sends Random Smug GIFs.'),
BotCommand('baka', 'Sends Random Baka Shout GIFs.'),
BotCommand('dva', 'Sends Random D.VA source Images.'),
]
# Create the Application and pass it your bot's token.
application = Application.builder().token(CONFIG['bot_token']).build()
application.bot.set_my_commands(COMMANDS)
application.add_handler(CommandHandler('start', start))
application.add_handler(CommandHandler('help', chelp))
application.add_handler(CallbackQueryHandler(help, pattern='zero_.*'))
application.add_handler(CallbackQueryHandler(asfile, pattern='neko_.*'))
application.add_handler(CommandHandler("lewdkemo", lewdkemo))
application.add_handler(CommandHandler("neko", neko))
application.add_handler(CommandHandler("feet", feet))
application.add_handler(CommandHandler("yuri", yuri))
application.add_handler(CommandHandler("trap", trap))
application.add_handler(CommandHandler("futanari", futanari))
application.add_handler(CommandHandler("hololewd", hololewd))
application.add_handler(CommandHandler("sologif", sologif))
application.add_handler(CommandHandler("cumgif", cumgif))
application.add_handler(CommandHandler("erokemo", erokemo))
application.add_handler(CommandHandler("lesbian", lesbian))
application.add_handler(CommandHandler("wallpaper", wallpaper))
application.add_handler(CommandHandler("lewdk", lewdk))
application.add_handler(CommandHandler("ngif", ngif))
application.add_handler(CommandHandler("tickle", tickle))
application.add_handler(CommandHandler("lewd", lewd))
application.add_handler(CommandHandler("feed", feed))
application.add_handler(CommandHandler("eroyuri", eroyuri))
application.add_handler(CommandHandler("eron", eron))
application.add_handler(CommandHandler("cum", cum))
application.add_handler(CommandHandler("bjgif", bjgif))
application.add_handler(CommandHandler("bj", bj))
application.add_handler(CommandHandler("nekonsfw", nekonsfw))
application.add_handler(CommandHandler("solo", solo))
application.add_handler(CommandHandler("kemonomimi", kemonomimi))
application.add_handler(CommandHandler("avatarlewd", avatarlewd))
application.add_handler(CommandHandler("gasm", gasm))
application.add_handler(CommandHandler("poke", poke))
application.add_handler(CommandHandler("anal", anal))
application.add_handler(CommandHandler("hentai", hentai))
application.add_handler(CommandHandler("avatar", avatar))
application.add_handler(CommandHandler("erofeet", erofeet))
application.add_handler(CommandHandler("holo", holo))
application.add_handler(CommandHandler("tits", tits))
application.add_handler(CommandHandler("pussygif", pussygif))
application.add_handler(CommandHandler("holoero", holoero))
application.add_handler(CommandHandler("pussy", pussy))
application.add_handler(CommandHandler("hentaigif", hentaigif))
application.add_handler(CommandHandler("classic", classic))
application.add_handler(CommandHandler("kuni", kuni))
application.add_handler(CommandHandler("waifu", waifu))
application.add_handler(CommandHandler("lewd", lewd))
application.add_handler(CommandHandler("kiss", kiss))
application.add_handler(CommandHandler("femdom",femdom))
application.add_handler(CommandHandler("cuddle", cuddle))
application.add_handler(CommandHandler("erok", erok))
application.add_handler(CommandHandler("foxgirl", foxgirl))
application.add_handler(CommandHandler('titsgif', titsgif))
application.add_handler(CommandHandler('ero', ero))
application.add_handler(CommandHandler('smug', smug))
application.add_handler(CommandHandler('baka', baka))
application.add_handler(CommandHandler('dva', dva))
application.run_polling(allowed_updates=Update.ALL_TYPES)