1.0.9 • Published 5 years ago

soba-bot v1.0.9

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

npm

Getting Started (Integration)

  1. npm install --save soba-bot
  2. Set envionment variable: SOBA_API_KEY (get at discord.soba.io)
const Discord = require("discord.js");
const { SobaBot } = require("soba-bot");

const client = new Discord.Client();
const sobaBot = new SobaBot(process.env.SOBA_API_TOKEN, client);

client.on("ready", () => {
  console.log("Online");
});

client.on("message", message => {
  sobaBot.handleMessage(message);
});

client.login(process.env.DISCORD_TOKEN);

Getting Started (Development)

  1. Set envionment variable: SOBA_API_KEY (get at discord.soba.io)

  2. npm install

  3. npm run watch

Directory Structure

src
└───index.ts  # discord bot client logic
└───api       # soba.io api functions
└───commands  # individual command logic
└───types     # type information
└───utils     # misc. helper functions
1.0.9

5 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago