Skip to content

Repository files navigation

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");constbot=newReplit();(async()=>{// This should always be the first thing done!awaitbot.login("myAwesomeBot","password")bot.checkPosts([1234,5678,4839]);bot.checkFrequency(60000*5);// 5 minutes is goodbot.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

About

A simple way to create bots with repl.it graphql

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages