Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added /tts, /settings #61

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions init.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

# Standard library imports
from typing import Any, ClassVar
import typing

# Related third party imports
from telebot import types, util
Expand All @@ -14,7 +14,7 @@

# Connect to bot
# Token placed in utils.py file. You can change it with your token
GPTbot: ClassVar[Any] = telebot.TeleBot(utils.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
Expand All @@ -33,10 +33,18 @@
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"
Expand Down
Loading