This bot is built on Node.js. If you do not yet have Node installed, download and install the latest LTS version from the official website for your platform:
Important
Node.js, version 18 or higher is required.
To set up WachmannJS, download the latest zip file or clone it using git:
git clone git@github.com:TamaniWolf/WachmannJS.git
Once downloaded, extract it from the zip file if needed and enter the directory to install the dependencies:
cd WachmannJS
npm install -global pnpm pm2
pnpm update
To configure WachmannJS, rename the included #.env to .env. It should look like this in there:
#-- WachmannJS --//
TOKEN = <Token>
PREFIX = w.
SHARDING = false
BOTLANG = en_US
SERVER_ID = <GuildId>
SERVER_OWNER = <OwnerId>
BOT_MASTER = <UserId1, ...>
BOT_MASTER_ROLE = <RoleId1, ...>
WACHMANN_ID = <BotId>
CANNI_ID = <OtherBotId>
SANI_ID = <OtherBotId>
BOT_CHANNEL = <ChannelId1, ...>
LOG_CHANNEL = <ChannelId>
CAPTCHA_CHANNEL = <ChannelId>
# Set what Moderation action to take.
# ------- ban, kick
ACCOUNT_AGE = kick
CAPTCHA_FAIL = kick
# Here you can decide if you want Bots and there commands to be logged in the logs.
# ------- true is ON / false is OFF
LOGGING_BOTS = true
LOGGING_BOT_COMMANDS = false
# Exclude commands of other bots from being logged.
# ------- hug,megahug,boop,megaboop
EXTERNAL_COMMANDS = hug,megahug,boop,megaboop
# Enable the bots commands by entering them in.
# ------- help,info,ping,sleep,clear,automod,captcha
ENABLE_COMMANDS = help,info,ping,sleep,clear,automod,captcha
# Enable the bots modules / functions by entering them in.
# ------- logs,interbotcom,accountage,reactcaptcha
ENABLE_MODULES = logs,interbotcom,accountage,reactcaptchaYour Discord bot needs to be registered as an application, and you will need a bot token (TOKEN in ClanNotifyer's .env).
Follow this guide to create your own Bot User/Application.
Once the application has been configured, start it using node from the installation directory:
node .
Or with the proccess Manager pm2.
For the first time:
pm2 start main.js --name "Name" --max-memory-restart 250M
After adding to pm2 you can start it with the process number or the name:
pm2 start 1
pm2 start Name
Send the following link to the admin of a Discord server to let them invite the Bot:
https://discordapp.com/oauth2/authorize?client_id=BOT_CLIENT_ID&scope=bot&permissions=564582511275254
Swap BOT_CLIENT_ID in the URL above for your Discord app's client id, which you can find in the app details.
Tip
Use @Bot-name help to get an overview of the commands.