Skip to content
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.

Chew/ListcordRB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Listcord has been shut down, no idea why, I think it was because the mods were garbage, whoops. Anyway, this is dead now, thanks for stopping by!

ListCordRB

A ruby library for the ListCord discord bot list.

What is this for?

I mean, why not.

Installation

Like a normal gem, run gem install listcordrb!

For Gemfiles, just gem 'listcordrb'! Simple!

Usage

Put this near the top of your ruby bot:

require 'listcordrb'

LC = ListCordRB.new(api_key, bot_id)

Now, when you need to run a method, run DBL.method.

Example for getting server count.

bot.command(:servercount) do |event|
  event.respond "I am on #{LC.stats.servers} servers!"
end

Assuming the server count is 100, the output after running servercount would be:

"I am on 100 servers!"