Skip to content

Lightweight discord API wrapper for Node.js, mainly used by my public bot.

Notifications You must be signed in to change notification settings

MergHQ/masamune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

masamune

Another lightweight discord API wrapper for Node.js, mainly used by my public bot.

This reponds to Hello! with Hello :username.

const Masamune = require('masamune');
const client = new Masamune.Client('token');

client.on('MESSAGE_CREATE', msg => {
  if (msg.content === 'Hello!')
    client.callApi(Masamune.Endpoints.createMessage(msg.channel_id, 
      {data: { content: `Hello ${msg.author.username}`}});
});

About

Lightweight discord API wrapper for Node.js, mainly used by my public bot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published