Hosting Discord Bot from Personal Server
Successfully host a Discord Bot server connected with Convai API
Last updated
Successfully host a Discord Bot server connected with Convai API
Last updated
Here we list out the steps to successfully host a discord bot server and update the required details to allow users to effectively communicate with the character created.
The current version has support for only Python language. We are striving to include support for servers in other languages also. Please, reach out to us at support@convai.com if you have any queries on this.
Code Link: Github
Steps:
Visit the link given above and clone the repository in your system, where you want to host the server.
Go to your system and open Terminal
Insert the following commands:
We are now inside the python folder that has the necessary code.
We need to edit the .env file to update it with the required credentials. Open the .env file to edit and enter the necessary details.
With this, we are set to start our server, just run the following command:
Now the bot should be running perfectly. You should see some log like this, that indicates that the bot is up.
Note: Here ConvaiBot is the name that we gave. The name of your bot will appear there in place of ConvaiBot.
And we are done. Your bot is up. Keep it running for it to be able to interact with the users.
If you have some problem with hosting it, do reach out to us at support@convai.com and we will get back to you soon.
Convai is looking into solutions for hosting the server bot for you so that you do not have to go through the whole hassle in the above steps. We will keep on updating the docs as soon as we have some updates.