A Pic Size Bot for WOLF, designed to help checking sizes of posted images for bot content editors.
Uses Wolfringo library for connection and MongoDB (using C# MongoDB Driver) for storage.
View bot features information on Wiki page.
All commands with more detailed descriptions are listed on Commands wiki page.
All commands need to have a prefix (currently !size ) when used in a group. Commands executed in a private message can skip the prefix.
- Clone this repository to get all files.
- Set up MongoDB database with following collections:
GroupConfigs,IdQueues,MentionsandUsersData. - Create
appsecrets.jsonfile. See example file for example structure.
This file will hold secrets, so it should not be included in source control repository..gitignorefile included with this repo will ignoreappsecrets.jsonandappsecrets.*.jsonfiles. - Populate secrets file with bot login credentials and MongoDB connection string for your DB.
- (optional) If using DataDog for logs, create a following section in
appsecrets.json, replacying<api-key>with your DataDog application API key:
"Serilog": {
"DataDog": {
"ApiKey": "<api-key>"
}
}- Build and run
PicSizeCheckBotproject.
This bot is under continuous (if sometimes slow) development. Breaking changes might be introduced at any time.
If you spot a bug or want to suggest a feature or improvement, feel free to open a new Issue.
Copyright (c) 2020 TehGM
Licensed under GNU Affero General Public License v3.0 (GNU AGPL-3.0).