Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Your WidgetBot license token
license: ''
# NEDB configuration - see https://github.com/louischatriot/nedb/wiki/Creating-loading-the-database
database:
# The path to where the NeDB database should be stored
dir: ./data/database/
# The secret to use when verifying JWT tokens
# WARNING: Keep this private. If an attacker gains ahold
# of this, then server security is severely
# compromised.
jwt_secret: insert_here
# Discord configuration
discord:
# Bot token
token: ''
# Discord channel to send server events to
# FORMAT: [server, channel]
webhooks:
# Public events, eg. Bot joined guild etc.
public: ['299881420891881473', '451441039702622218']
# Private server events
private: ['299881420891881473', '451441039702622218']
# The new for the webhook to generate when sending messages
webhook: 'WidgetBot.io Chat'
# Playing statuses for the bot - set to falsy to disable
statuses:
- ${shard} • ${visitorCount} visitors
- Discord on your website • ${shard}
- ${shard} • ${accountCount} accounts
- ${shard} • ${messageCount} messages
- ${shard} • ${guildCount} guilds
# Admins of the bot
admins:
- '294916911194570754'
- '111783814740594688'
# Express web server configuration
express:
# The port to host the site on
port: 7000
# GraphiQL - online GraphQL editor
# Test it out in your browser at /api/graphql
graphiql: true
# Rate limiting of the API
# see https://www.npmjs.com/package/express-rate-limit#configuration
rateLimit:
# how long to keep records of requests in memory.
windowMs: 900000
# max number of connections during windowMs milliseconds before sending a 429 response.
max: 1000
# max number of connections during windowMs before starting to delay responses.
delayAfter: 100
# how long to delay the response, multiplied by number of recent hits
delayMs: 10
# Embed configuration
embed:
# Default embed theme
theme:
colors:
primary: '#fff'
accent: '#7289da'
background: '#36393E'
# Default CSS to be applied to all servers
css: ''
# Embed configuration
config:
# Default guest avatar's
avatar: identicon
# Notifications to display on embed load
notifications: null
# Configure memoizee
cache:
# How many messages to store in cache
graphql.messageHistory: 50
# How long until the message cache should be purged
graphql.messageHistoryExpiration: 20m
# How long to cache the channels for each server for
graphql.channelsExpiration: 10s
# How long to cache the permissions for each server for
graphql.permissionsExpiration: 10s
# Select a logging level to use for Winston
log_level: info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment