A configurable Discord bot for linking wiki articles from any Wikia-based community.
[[<article name>]] -> http://rs.wikia.com/<article_name>
{{<template name>}} -> http://rs.wikia.com/Template:<template_name>
--<raw article>-- -> http://rs.wikia.com/<raw_article> (bypasses Wikia API)
wl~help - Links to this README.
wl~sinfo - Shows info about the configuration of the bot on the server.
wl~swiki - Sets the global wiki for the server.
wl~cwiki - Sets the override wiki in the current channel.
wl~bchan <value> - Sets the broadcast channel of the server to the mentioned channel. Accepted values are:
- A #channel mention
- No value given - sets current channel as broadcast channel
- off - disables broadcast channels for the current server
wl~restart - Restarts the bot. The bot must be run under a process manager such as PM2, otherwise this will just error out the bot!
wl~bc - Broadcasts a message across all of the servers the bot is in - to the broadcast channel is set, or the general channel otherwise.
Click the following link: https://discordapp.com/oauth2/authorize?client_id=182146444357140480&scope=bot&permissions=3072
The bot only has read message and send message permissions when added - additional permissions and limiting to channels must be done manually.
- Download the repository.
- Make sure you have NodeJS and NPM with all of its dependencies installed.
npm install- Make a
config.jsonfile; an example is provided. Fill the fields with: .tokencontains the token of the bot account used. .admin_snowflakecontains the ID of the admin user. REQUIRED FOR THE BOT TO START UP. .prefixthe prefix to activate commands. node wikilinker.jsto run it!