Skip to content
This repository has been archived by the owner on Jan 2, 2019. It is now read-only.

spec-tacles/discord.js-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord.js-redis

Build Status

Integrates Discord.js caching with Redis. Stores users, guilds, channels, messages, and emojis in a hash set of IDs (keys are the plural of the type: e.g. users, messages, etc.). You can subscribe to channels named [type]Set and [type]Delete which will contain a payload of the resource ID.

Example

const discord = require('discord.js');
const redis = require('discord.js-redis')({
  host: '1.3.3.7' // these options can be found on redis.js.org
});

const client = new discord.Client();
redis(client);

client.login('token');

Releases

No releases published

Packages

No packages published