Bot Setup Tutorial
Follow these steps to get started with Ugoku !
Quick Setup Guide
- Install FFmpeg. You can follow this guide if you are on a Windows machine.
- Copy the repo.
- Create a virtual environment.
ORpython -m venv venvpython3 -m venv venv - Enable the venv.
Windows:
Linux:./venv/Scripts/activate.batsource venv/bin/activate - Install the dependencies.
pip install -r requirements.txt - Create a bot and add it to a Discord server, or add it to your apps. You can follow the first 3 sections of the guide.
- Create an
.envfile in the root directory. - Set the environment variables for the services you want to use, based on the template.
- Restart the IDE (to update the env variables).
- On linux machines, you may want to switch the protobuf implementation to Python if the
.envvariable has been ignored by doing so:echo 'export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python' >> ~/.bashrc
You can now restart your instance.source ~/.bashrc - Configure and activate the features in the
config.pyfile. - Run
main.py. - If Spotify is enabled, log in to Librespot from your Spotify client (it should appear in the device list)*.
- Done !
TIP
*This action will create a credentials.json file in the root folder. If you are having trouble creating it on a remote machine, try creating it on your local machine and exporting it.