Running the Webserver

Important

In order for the bot to communicate with the webserver, you must add the argument --rpc to the start line of your Red bot.

At this point, the dashboard cog should be loaded and initialized on your Red bot, and restarted to have RPC enabled (as mentioned above). The webserver package should be installed into it’s own, separate virtual environment, and your OAuth2 settings should be updated within Discord.

Once you are squared away, activate your virtual environment using the command during installation, then run:

reddash

A text interface should pop up, similar to that below:

../_images/launched_interface.png

If your screen looks like the above, congrats! Your dashboard should be successfully connected to your Red bot, and viewable at the domain/IP address specified in Configuration Companion Cog - Single Bot. If you wish for the webserver to run with Automatic Startup, check out the Automatic Startup (systemctl) guide if you are on Linux.

Does your bot say RPC Disconnected or some other error? Check to make sure that your bot started with the --rpc flag and are using the same RPC port (6133). If you have any other issues, feel free to drop by the support server listed here.