This guide will help you set up your own MeowGPT Discord bot using the provided code. MeowGPT is a chatbot powered by the SplitticAPI.
-
Python: Ensure that you have Python installed on your system. If not, download it from python.org.
-
Discord Bot Token: Obtain a Discord bot token by creating a new bot on the Discord Developer Portal.
-
SplitticAPI Key: Sign up for an account on SplitticAPI and get your API key from the FreeAI Discord server.
-
Text Prompt (Optional): Prepare a text prompt to initiate conversations. You can provide an empty string if you don't want to use a specific prompt.
-
Channel IDs: Identify the Discord channels where you want the bot to operate. Collect the Channel IDs of these channels.
-
Free Hosting: Visit splittic.app for free hosting. Follow their instructions to set up your bot hosting.
- Open the
config.py
file and update the following variables:api_key
: Replace"YOUR_API_KEY"
with your SplitticAPI key.token
: Replace"YOUR_DISCORD_BOT_TOKEN"
with the Discord bot token you obtained.activity
: Customize the activity message as desired. Use{s}
for the server count and{u}
for the user count.channel_ids
: Add the Channel IDs of the Discord channels where you want the bot to respond.
-
Save your text prompt (if any) in a file named
prompt.txt
. If you don't have a prompt, you can leave the file empty. -
Run the
bot.py
script to initialize your bot.python bot.py
-
Your bot should now be running and will display "Logged in as [your bot name]" in the console.
-
Invite your bot to your Discord server using the OAuth2 link generated on the Discord Developer Portal.
-
Ensure the bot has the necessary permissions in the channels you specified in
config.py
. -
Start chatting with your MeowGPT bot in the designated channels. The bot will respond to messages in the configured channels.
Feel free to modify the code in bot.py
and config.py
to customize the bot further. You can adjust the prompt, change the activity message, or add more features as needed.
Visit splittic.app to take advantage of free hosting for your MeowGPT Discord bot. Follow the provided instructions to set up and host your bot effortlessly.
If you encounter issues during the setup, check the console for error messages and ensure that you have followed all the steps correctly. If problems persist, refer to the documentation of the libraries used in the code (Discord.py and SplitticAPI) for additional guidance.
Congratulations! You have successfully set up your MeowGPT Discord bot. Enjoy chatting with your AI-powered companion!