dbot-framework
v1.0.18
Published
This a really cool discord package (unofficial, ofc) but this package makes it SOOO easy for devs to make a new bot It's as simple as declaring the package - ``` const dbot = require('dbot-framework'); ``` then setting a prefix (what sets the comma
Downloads
5
Readme
Hey, Welcome!
This a really cool discord package (unofficial, ofc) but this package makes it SOOO easy for devs to make a new bot It's as simple as declaring the package -
const dbot = require('dbot-framework');
then setting a prefix (what sets the command apart from normal messages eg. !ping and not just 'ping') -
dbot.setPrefix('!');
then setting a token from your discord bot
dbot.settoken('your PRIVATE TOKEN goes here')
making a basic command -
dbot.setBasicCommand('ping', 'pong');
// the first argument of the function is the input
// and the second argument is the output
and finally, login -
dbot.login();