This is a Discord Bot for Pixel Starships
- Log in to the server (this is optional if you are running from a local computer). For example, if you are running on an Amazon AWS AMI, this would be:
ssh -i ~/.ssh/my_key_file.pem ec2-user@hostnamewhere your Amazon AWS instance key file is my_key_file.pem
and the username and address above should be changed to that
of your instance running on AWS.
- Install Python 3.6, Git, followed by
discord.py. On an Amazon AMI, this would be:
sudo yum install python36 python36-pip git
pip-3.6 install discord.py --user- Clone this Github repository
git clone https://github.com/jzx3/pss.git-
Create a Discord Bot. A good guide is Sebi's bot tutorial. The link to the tutorial is here.
Get the invite link for the Discord bot and add the bot to the Discord chat.
Add the bot token to
~/.bash_profileas follows:
export DISCORD_BOT_TOKEN="insert_bot_token_here"Inside the server, create a screen session to run the job
in the background. Note that it is not necessary to use
screen--the job can be run in the background in other ways,
for example using the nohup command.
screen -S pss # Create a screen session named "pss"
cd pss/prestige
./run.sh # Run the botPress Ctrl-A, Ctrl-D to exit screen. To get back to the screen session (e.g. for stopping the bot), restore the session with:
screen -r pss
To stop the bot, press Ctrl-C twice.
Inside Discord chat, get the list of commands using:
/help