Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Install – Self Hosting

Nintendofan885 edited this page Jul 25, 2020 · 27 revisions

⚠️ It is suggested to host the DiscordGSM on Heroku if you are not familiar with python.

Prerequisites

  • Python >= 3.6

Dependencies

  1. discord.py - python3 -m pip install discord.py
  2. requests - python3 -m pip install requests

You can install the dependencies by opening up a command prompt and type pip install -r requirements.txt

Set up

  1. Linux user, create a user called discordgsm - adduser discordgsm. Windows user please skip this step.
  2. Download source code from https://github.com/DiscordGSM/DiscordGSM/releases
  3. Edit settings.json under configs folder, set "token"="<bot_token>". You can get <bot_token> on https://discord.com/developers/applications/
  4. Run the bot with command python3 bot.py

Invite DiscordGSM to your server

Get the invite link from https://discord.com/developers/applications/ with permission 268954704 Ex: https://discord.com/api/oauth2/authorize?client_id=<cid>&permissions=268954704&scope=bot

Alternatively, you can get the invite link by - python3 getbotinvitelink.py