Giter VIP home page Giter VIP logo

dankster's Introduction

Readme

First of all, this is not a particulary good bot, it was made just for fun for me and my friends.

It has functions such as:

  • Managing a whitelist based on peoples discord tags to defend destructive commands. The first tag in the list of whitelisted people is protected against removal, to implement somewhat of a owner status.
  • Managing a list of subreddits.
  • Fetching 1-5 random images from your selection of subreddits.
  • Fetching a random image of a puppy.
  • Posting the link to a epic dota 2 streamer intro.
  • Seeing what times my fried raid in Wow..
  • Displaying a help dialog.

As you see, i probably just uploaded it to github to have an easy way to distribute the bot to my server.

Anyhows this is how you set it up:

  1. Clone the repo.

  2. Install node >= 10 (may work with earlier versions, using some arrow functions and other shizzle).

  3. Create a "settings.json" file and type:

    {
        "token": "Your bot token here",
        "commandPrefix": "!"
    }
    

    This is so i have zero chances of accidently including the token in my repo. Applications, bots and tokens can be created here https://discordapp.com/developers. But you should probably use some guide if you've never done it before. Go to the OAuth section of your application, add the permissions and navigate to the generated link to add it to your server

  4. Open the "whitelist.json" and add your discord tag to the whitelist so you may manage everything from the discord chat later.

  5. Run "npm install" in the repository folder to install the dependencies.

  6. Run "node bot.js" to start the bot.

If you have configured your bot to use the right server in your registered application it should come online in that server and you can start with typing "!help".

The discord.js library uses the Apache 2.0 license and can be found here: https://github.com/discordjs/discord.js/blob/master/LICENSE

The random-puppy library that fetches images from reddit uses the MIT license and can be found here: https://github.com/dylang/random-puppy/blob/master/license

Both licences are available in the Licenses folder in this repository.

Regarding my code, you can do whatever you want with it, but i am not responsible for anything, glhf.

dankster's People

Contributors

wholteza avatar

Watchers

James Cloos avatar  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.