UNPKG

anony-mpp-bot-js

Version:

This is anony mpp bot

36 lines (28 loc) 681 B
# this is mpp bot by anonydiamond ### you can make bot only using index.js if you use this package ## if it shows coudnot found module ## install module using npm i module # usage ```bash npm init npm i anony-mpp-bot-js node . ``` ```js const Bot = require('anony-mpp-bot-js'); const bot = new Bot({ token: "your bot token here", name: "your bot name here", color: "your bot color here (hex code)", room: "room name you wanna connect" }) bot.connect(); var prefix = "!" bot.client.on('a', msg => { let cmd = msg.a.split(' ')[0] if (cmd === `${prefix}ping`) { bot.chat("Pong!"); } }) ``` #### Peace ---