A Discord Bot that acts like the Grok Twitter Bot and can answer questions based on recent messages. It can also search the web for information, provide summaries, and send voice messages.
Image Generation:
- Use the
/gen_imagecommand and write your prompt into thePrompt-Field
Voice Generations:
- Use the
/ttscommand, choose from the available voices in theVoice-Field and write your prompt into thePrompt-Field - Use the
/voice_clonecommand, upload a voice sample in theaudio_sample-Field and and write your prompt into thePrompt-Field
Text Generation:
- Just @ mention the bot. It will reply to your message.
- Go to the Discord Developer Portal and create a new application.
- Navigate to the "Bot" tab and click "Add Bot".
- Copy the bot token and save it for later.
- Under "OAuth2" > "URL Generator", select these scopes:
s:
botapplications.commands
- In the same "URL Generator" section, select these Bot Permissions:
- View Channels
- Send Messages
- Read Message History
- In the "Bot" tab, enable the Message Content Intent.
- Copy the generated URL and use it to invite the bot to your Discord server.
If you have an NVIDIA GPU with CUDA support:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128pip3 install -r requirements.txtCreate a .env file with your API keys:
- HACKCLUB_AI_API_KEY
- HACKCLUB_SEARCH_API_KEY
- DISCORD_BOT_TOKEN
python3 main.py