GithubHelp home page GithubHelp logo

diabolical5777 / modmail-faq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snowyjaguar1034/modmail-faq

0.0 0.0 0.0 9.88 MB

Simple Discord.py bot for ModMail support server

License: Other

Python 100.00%

modmail-faq's Introduction

FAQ

Simple Discord.py bot for the ModMail support server

Table of Contents

Questions

Have a question? Please avoid opening issues for general questions. Instead, it is much better to DM me on Discord SnowyJaguar#1034

Self Hosting

This self-hosting guide requires you to have some basic knowledge about command line, Python, and Discord bots. We do not provide any official support for self-hosting.

Prerequisites

In order to run FAQ, you will need to install the following software.

You may also want to set up a virtual environment so that FAQ's requiremnts don't mess with your base enviroment.

Installing the source

Please fork this repository so that you can make pull requests. Then, clone your fork.

# Clone the repository
git clone https://github.com/<your-github-username>/ModMail-Bot-FAQ.git

# Sometimes you may want to merge changes from the upstream repository to your fork.
git checkout master
git pull https://github.com/SnowyJaguar/zupie.git master

Setup

Configuration is done through a .env file.

You should make a copy of example.env and rename it to .env.

  • TOKEN : Your bots token as found on the Discord Developer Portal
  • GUILD : The ID of the guild that the bot is in.
  • DESCRIPTION : The description of your bot
  • ACTIVITY : The activity message shown on the bot's status
  • Owners : The IDs of the bot owners, each ID separated by a comma.
  • Default_COLOUR : The default colour of the embeds.

Setting up a virtual environment

This is useful if you want to run a variety of python projects on a machine but not have version conflicts. I highly recommend doing this even if you only have one project, I didn't understand the appeal when I started using python but after a while I started seeeing the benefits.

# Go to your project’s working directory
$ cd your-bot-source-directory
# In this example I am using 'env' as the name of my virtual
# environment however you can use whatever you want
$ python3 -m venv env

# Activate the virtual environment
# On Linux
$ source env/bin/activate

# On Windows
$ env\Scripts\activate.bat

# Use pip like usual
$ (env) <Your source directory>pip install -r requirements.txt

Installing the Modules

FAQ utilises discord.py and several other modules to function properly. The list of modules can be found in requirements.txt and you can install them with the following command.

pip install -r requirements.txt

Running the bot

Congratulations! You have set up everything and you can finally have the bot up and running. Use the following command to run.

<Your source directory>python main.py

License

This project is licensed under the BSD 3-Clause License

modmail-faq's People

Contributors

snowyjaguar1034 avatar diabolical5777 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.