Giter VIP home page Giter VIP logo

trump-bot's Introduction

INVITE

https://discordapp.com/oauth2/authorize?client_id=247869756609265664&scope=bot&permissions=0

USAGE/DEPLOYMENT

Get a bot token for your installation

https://discordapp.com/developers/applications/me

Docker

Copy the Dockerfile to your local system with Docker installed and build the image like this:
docker build --build-arg token=<token> -t trump-bot .

Afterwards, run the image via executing:
docker run --name trump-bot -d trump-bot

Your container should come up and start deploying shards. You can view it's progress via: docker logs -f trump-bot

Custom environment installation

Download/Clone the bot

git clone https://github.com/Blogshot/trump-bot.git

Install Nodejs

https://nodejs.org/en/download/

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs

Install FFMPEG.

Debian/Ubuntu

apt-get install ffmpeg

Windows

edit your environment variables

Other OS

Download the appropriate package from here: https://ffmpeg.org/download.html

Create a file named stats.json to store statistics

{
  "guildCount": 0,
  "shards": 0
}

Create a file named config.js to store configuration data (the bot-token)

module.exports = {
  token: "<bot-token>"
};

Initialize NPM

npm init

Install basic packages

npm install --global --production windows-build-tools (Windows only)
`npm install

Start the bot

Without sharding

node bot.js

With sharding

node sharder.js

Other Requirements

To be able to interact with the bot, it needs to have the following permissions on at least one text channel:

  • Read messages
  • Write messages
  • Embed links

Also, the bot should be permitted to use voice.

trump-bot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

auszes

trump-bot's Issues

Implement loglevels

It might be a good idea to implement a config-file parameter o set the loglevel, leading to smaller logfiles overall.

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.