-
Notifications
You must be signed in to change notification settings - Fork 36
/
init.py
66 lines (61 loc) · 1.76 KB
/
init.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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Standard library imports
import typing
# Related third party imports
from telebot import types, util
import telebot
import requests
# Local application/library specific imports
import utils
# Connect to bot
# Token placed in utils.py file. You can change it with your token
GPTbot: typing.ClassVar[typing.Any] = telebot.TeleBot(utils.TOKEN)
print(f"The Bot is online (id: {GPTbot.get_me().id}) \33[0;31m[Initial MODE]\33[m...")
# Set bot commands
print("[!] Configuring bot commands...")
GPTbot.set_my_commands(
commands=[
types.BotCommand(
command="start",
description="Start the bot"
),
types.BotCommand(
command="help",
description="Show help message"
),
types.BotCommand(
command="ping",
description="Ping providers"
),
types.BotCommand(
command="settings",
description="Provider settings"
),
types.BotCommand(
command="chat",
description="Chat in groups using this command"
),
types.BotCommand(
command="tts",
description="Brian Text To Speech response"
),
types.BotCommand(
command="history",
description="Get your chat history"
),
types.BotCommand(
command="reset",
description="Reset you chat history"
),
types.BotCommand(
command="danmode",
description="Enable/Disable DAN mode v 10.0"
),
types.BotCommand(
command="features",
description="See features changes"
)
]
)
print("[!] Commands successfully configured.\n[!] Run main.py")