Getting Started
Installation
Configuration
-
Edit
bin/configs/config.jsoneither open in Notepad/++ orvi bin/configs/config.json. Config Instructions - Input your bot token and config options.
-
Fill out the rest of the config options.
-
Edit
bin/alarms/alarms.jsoneither open in Notepad/++ orvi bin/alarms/alarms.json. -
Fill out the alarms file. Alarm Instructions
-
Create directory
bin/geofencesif it doesn't already exist. -
Create/copy geofence files to
geofencesfolder. Geofence Instructions -
Add
dotnetto your environment path if it isn't already (optional):
export PATH=~/.dotnet/:$PATH
Running
To run via command line arguments click here.
- Build executable from root folder:
dotnet build
- Start Webhook Manager:
dotnet WhMgr.dll
dotnet WhMgr.dll --config test.json --name test
- User Interface for members to create subscriptions from a website. WhMgr UI
- Optional reverse location lookup with OpenStreetMaps Nominatim or Google Maps, instructions here
Admin Dashboard
Webhook Manager comes with a built-in Admin dashboard to configure and manage all config, discord, filter, geofence, etc files.
Visit the dashboard at https://127.0.0.1:8008/dashboard
Discord Permissions
Discord recently enabled a new feature that requires you to enable the Privileged Gateway Intents options in the Discord Developers Portal to access Discord member lists.
The bot requires the following Discord permissions:
- Read Messages
- Send Messages
- Manage Messages (Prune quest channels)
- Manage Roles (If cities are enabled)
- Manage Emojis
- Embed Links
- Attach Files (
exportcommand) - Use External Emojis
Notes
- If
dotnetis not in your path, you'll need to use~/.dotnet/dotnetinstead of justdotnetfor commands. - If you ran the original install command as
root,dotnetwill be located at/root/.dotnet/dotnetand you'll need to either use that for build commands or replace the~/.dotnet/dotnetpath with it when adding to your path. - Upon starting, database tables will be automatically created if
subscriptions.enabledis set totrue. Emoji icons are also created in the specifiedEmojiGuildIdupon connecting to Discord.