Class: ChatgptAssistant::DiscordBot
- Inherits:
-
ApplicationBot
- Object
- ApplicationBot
- ChatgptAssistant::DiscordBot
- Includes:
- Bots::Discord::Actions, Bots::Discord::Auth, Bots::Discord::Bot, Bots::Discord::ChatActions, Bots::Discord::Events, Bots::Discord::VoiceActions, Bots::Discord::VoiceCheckers
- Defined in:
- lib/chatgpt_assistant/bots/discord_bot.rb
Overview
This class is responsible to handle the discord bot
Instance Attribute Summary
Attributes inherited from ApplicationBot
#audio_url, #bot, #chat_id, #common_messages, #config, #database, #default_msg, #discord_client_id, #discord_prefix, #discord_token, #error_messages, #help_messages, #mode, #msg, #openai_api_key, #success_messages, #telegram_token, #visitor
Instance Method Summary collapse
Methods included from Bots::Discord::VoiceCheckers
#disconnect_checker_action, #speak_connect_checker_action, #speak_connection_checker_action, #voice_connect_checker_action, #voice_connection_checker_action
Methods included from Bots::Discord::VoiceActions
#ask_to_speak_action, #disconnect_action, #discord_voice_bot_connect, #speak_answer_action
Methods included from Bots::Discord::Events
#ask_event, #help_event, #hist_event, #list_event, #login_event, #new_chat_event, #private_message_event, #sl_chat_event, #speak_event, #start_event, #voice_connect_event, #voice_disconnect_event
Methods included from Bots::Discord::ChatActions
#answer_action, #ask_action, #private_message_action, #send_message
Methods included from Bots::Discord::Actions
#create_chat_action, #discord_created, #help_action, #hist_action, #list_action, #login_action, #sl_chat_action, #start_action
Methods included from Bots::Discord::Auth
#discord_user_access, #discord_user_auth, #discord_visited?
Methods included from Bots::Discord::Bot
Methods inherited from ApplicationBot
Methods included from FileHelper
Methods included from SearchHelper
#find_user, #find_visitor, #where_user
Methods included from AudioHelper
#recognition, #synthesis, #transcribe_file
Methods included from MessengerHelper
Constructor Details
This class inherits a constructor from ChatgptAssistant::ApplicationBot
Instance Method Details
#start ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/chatgpt_assistant/bots/discord_bot.rb', line 14 def start start_event login_event list_event hist_event help_event new_chat_event sl_chat_event ask_event voice_connect_event voice_disconnect_event bot_init end |