1.1.3 • Published 5 years ago

discy v1.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Discy Skip the hassle of setting up your Discord bot

Get right into making your Discord commands with Discy

You can install the module with npm: npm install discy

This module is far from finished and needs a lot of work, Feel free to contribute where needed!

Simple setup 🎉 This is the index file that starts your bot.

const Discy = require('./discy')
// Require the discy module
const token = require('./token.js') 
// This file is excluded in .gitignore for testing purposes

Discy.prefixDatabase(true)
// Leave blank or fill in true to enable. Remove this line or change to false to disable

// Give the bot all the information it needs to start
Discy.configure({
    'token' : token, // Bot token, You can get it here: "https://discordapp.com/developers/applications/BOTID/bots"
    'bot_name' : 'Discy testing',
    'activity_name' : 'youtube', // Optional
    'activity_type' : 'WATCHING', // Optional
    'commands_folder' : 'commands',
    'prefix' : '!' // If the database is used this is backup for when custom prefix isn't set.
});

Discy.run()
// Tell the bot to start
// You can link other modules or execute functions before starting the bot if you'd like to.

Not all configuration options are mandatory. Here's a list of the ones that are:

  • Token
  • Bot name
  • Commands foler
  • Prefix

Optional:

  • Activity name
  • Activity type

Todo list:

  • Add database for prefix
  • Add optional included basic commands
  • Fix Activity
  • Fix commands executing multiple times on random occasions