2.0.0 • Published 4 years ago

replbot v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

REPLIT.js

Replit.js is an easy library for creating JavaScript repl.it bots. It uses graphQL and is class-based.

Get Started

// Load the comprehensive version.
const { Bot: Replit } = require("replbot");
const bot = new Replit();
(async () => {
  // This should always be the first thing done!
  await bot.login("myAwesomeBot", "password")
  bot.checkPosts([1234, 5678, 4839]);
  bot.checkFrequency(60000 * 5); // 5 minutes is good
  bot.on("comment", data => {
    if(data.message.body == "!test") {
      data.actions.reply(data.message.id, "Hello world!");
    }
  });
  // This should always be the last thing done!
  bot.listen("index.json");
})()

Basic Docs

2.0.0

4 years ago

1.4.6

4 years ago

1.3.0

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.1.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago