Alan Beatty
c42d529016
Fix color for ban DMs with plain text ban message.
2021-12-21 00:00:45 +00:00
Kwoth
2d2e54e31e
Bot will now check for permissions when trying to apply punishments
2021-12-05 08:47:10 +01:00
Kwoth
59c0f2f4b3
Added graceful option to die (kill coordinator without killing shards)
2021-12-01 09:47:41 +01:00
Kwoth
219ca39cd1
Added .coordreload which will reload coord.yml when using NadekoBot.Coordinator
...
- bots with more than 1 shard will now use redis strings provider
2021-12-01 09:41:23 +01:00
Kwoth
22b452e449
Added .warn weights, improved .warnlog
2021-11-21 02:01:21 +01:00
Alan Beatty
502c5cec07
Add an audit log reason to massban
2021-11-13 14:43:30 -06:00
Alan Beatty
5a681a5194
Add support for hackbans on massban
...
Closes #307
2021-11-13 20:38:01 +00:00
Kaoticz
1d57191700
Fix possible race condition for reaction roles
2021-11-09 10:41:49 +00:00
Alan Beatty
0ebc40b95c
TrimTo to avoid length limit for ban/kick reasons
2021-10-12 17:07:46 -05:00
Kwoth
12146ad2da
Make sure the bot has manageroles permission for .aar
2021-09-22 22:41:00 +02:00
Kwoth
c9e89e1911
- .logignore now supports targeting channels and users
...
- .logignore now lists all ignored channels and users when no parameter is provided
- Renamed and cleaned up some log-related fields
2021-09-21 22:39:24 +02:00
Kwoth
619bee811d
Fixed most of the commands which used wrong error color for confirm messages
2021-09-16 23:09:17 +02:00
Kwoth
a09be96200
Added DmHelpTextKeywords to data/bot.yml
...
- Bot now sends dm help text ONLY if the message contains one of the keywords specified
- If no keywords are specified, bot will reply to every DM (like before)
- Fixed several commands which used error color for success confirmation messages
2021-09-16 22:52:04 +02:00
Kwoth
cccb37854c
Added .imageonlychannel / .imageonly to prevent users from posting anything but images in the channel
2021-09-15 01:26:41 +02:00
Kwoth
c12b41ddd1
Added .massban
2021-09-13 17:41:33 +02:00
Kwoth
a5f9ac1540
.boostmsg will now properly show boost, and not greet message
2021-09-13 12:59:47 +02:00
Kwoth
8c5214def2
Ban .warnp will now prune user's messages
2021-09-13 01:30:11 +02:00
Kwoth
d115261536
Fixed .log commands
2021-09-12 22:07:56 +02:00
Kwoth
8ee1160a00
Added .boost, .boostmsg and .boostdel commands which allow you to have customizable messages when someone boosts your server, with auto-deletion support
...
- Updated response embed colors in greet commands
- Updated .greetmsg and .byemsg command help to match the new .boost command help
2021-09-12 20:44:35 +02:00
Kwoth
1df947d54b
.rero now optionally takes a message id to which to attach the reaction roles
2021-09-12 01:07:19 +02:00
Kwoth
8a5539448e
Updated credentials.json references to creds.yml
2021-09-07 16:38:05 +02:00
Kwoth
919bedeae6
Changed (almost) all responses to make them use the new system instead of raw strings
...
- Fixed many invalid string keys
2021-09-06 21:34:53 +02:00
Kwoth
4484732f5d
- Fixed counting parameters which have formats in response strings
...
- Almost finished porting localized string keys as methods
- Compiles
2021-09-06 21:34:53 +02:00
Kwoth
0115d35247
WIP: rework of localized strings, instead of generic LocStr, LocStr is now a struct which contains both the key, and the values which should be put into the value's placeholders. strs' properties are now methods which take values as arguments, and properties if they don't
2021-09-06 21:34:53 +02:00
Kwoth
9d375dccee
wip strings rework, experimenting, nothing works
2021-09-06 21:34:52 +02:00
Kwoth
70288f7670
Second iteration of source generated localized strings
...
- Strs renamed to strs
- Generic params will now default to object instead of string for convenient argument passing
- Many strings changed to use generated properties
2021-09-06 21:34:52 +02:00
Kwoth
42d623b696
Replaced access to .Context with .ctx
2021-09-06 21:34:52 +02:00
Kwoth
3c33c55dda
.warnp should accept roles only below your max role. Also added a custom error message
2021-09-06 21:34:52 +02:00
Kwoth
71da4d11c0
- Removed static color fields
...
- Removed unused code
- BanTemplate will get error color from bot config
2021-09-06 21:34:52 +02:00
Kwoth
9f6cbe0929
ban templates will now use smarttext instead of crembed
2021-09-06 21:34:51 +02:00
Kwoth
468bc5324d
- Fixed calls to SendAsync - they don't require EmbedBuilderService
...
- DmHelpText now uses smarttext and supports user-related placeholders
2021-09-06 21:34:51 +02:00
Kwoth
373e9e920d
- .say replacement fix
...
- .send and .qid now use smarttext instead of crembed
- added + operator for adding string to smarttext
2021-09-06 21:34:51 +02:00
Kwoth
5e4754fa40
- Reworked embed builder
...
- Use IEmbedBuilderService to create embed builders
- Wrapped embed builder and using IEmbedBuilder
2021-09-06 21:34:51 +02:00
Kwoth
5b4daa9dd3
All .AddField calls no longer use builder
...
- Cleaned up convertlist and listserver embeds slightly
2021-09-06 21:34:50 +02:00
Kwoth
a17d0afc7d
all calls to .WithAuthor and .WithFooter no longer use their respective builders
2021-09-06 21:34:50 +02:00
Kwoth
cbecd823c1
Cleaned up embedbuilder calls to use parameters instead of footer builder
2021-09-06 21:34:50 +02:00
Kwoth
0fc5f540d8
- Added Cloneable deep clone source generator nuget package
...
- Configs are no cloned using generated clone, not by serializing/deserializing
- Arrays/Lists (collections in geneeral) are still not cloned properly
- Removed GetRawData from config as it is no longer needed, new clone is very fast
- Added ICloneable<T> which all configs implement
- Cleaned up config classes/code
2021-09-06 21:34:50 +02:00
Kwoth
a8a4c9fb44
- NoPublicBotAttribute will now be properly ignored when built with GlobalNadeko configuration
...
- Added ILogCommandsService which will have dummy implementation on public bot, this means Logging Commands will be present on public bot to pull up help etc
- When .ve is enabled, NoPublicBot commands will show a nicer error message with link to selfhosting guide (thx ene)
- Fixed xp gain and .xp command not working on new users
- General cleanup
2021-09-06 21:34:50 +02:00
Kwoth
e681978f83
- xp template reload now uses new pubsub
...
- multiplexer.GetSubscriber().subscribe is no longer used in any service
- fixed some build warnings
2021-09-06 21:34:50 +02:00
Kwoth
941d393971
Stream follows now use new pubsub, cleanup
2021-09-06 21:34:50 +02:00
Kwoth
35d5260538
images reload and guild leave will now use new pubsub
2021-09-06 21:34:49 +02:00
Kwoth
65b4c1fab7
- Owner only attributes will now use fresh creds every time (no need for restart for owner only commands to start working once creds are changed)
...
- setgame/setstream use the new pubsub (also setstream will actually apply to all shards now)
- setgame/setstream moved to SelfService
- small cleanup
2021-09-06 21:34:49 +02:00
Kwoth
873eaa290e
- fixed remote coordinator being initialized when local one is supposed to be used
...
- Fixed services loading multiple times
- cleaned up service adding with scrutor
- INService moved from some interfaces to concrete implementation
2021-09-06 21:34:49 +02:00
Kwoth
3c82c1f919
- Started cleanup of command handler
...
- Removed IUnloadableService
- Started removing INService (removed it from services which implement behavior interfaces) - wip
- Added scrutor for better service registration - wip
2021-09-06 21:34:49 +02:00
Kwoth
a1ef862382
- small bot.cs cleanup
...
- creds.yml now loads and reloads properly (from the current directory, like credentials.json)
- added empty creds.yml to repo, and added it to .gitignore
2021-09-06 21:34:49 +02:00
Kwoth
16dd398aa0
- Credentials are now loading from creds.yml
...
- Removed/commented out obsolete credentials code
- Added missing properties to creds.yml
- Updated README.md with some tasks and progress
2021-09-06 21:34:49 +02:00
Kwoth
656db01aca
- removed unused attributes on commands
...
- Removed some commented out files
2021-09-06 21:34:48 +02:00
Kwoth
49f9b96755
One of the last major cleanups. All NadekoBot.Core.* namespaces renamed to NadekoBot.*
2021-09-06 21:34:48 +02:00
Kwoth
77904a3b00
Improved .shardstats format + small cleanup
2021-09-06 21:34:47 +02:00
Kwoth
c86bf6f300
- NadekoBot class renamed to Bot
...
- Implemented grpc based coordinator. Supports restarting, killing single or all shards, as well as getting current shard statuses. (Adaptation of the one used by the public bot)
- Coord is setup via coord.yml file
- Methods from SelfService which deal with shard/bot restart etc have been moved to ICoordinator (with GrpcRemoteCoordinator being the default implementation atm)
- Vastly simplified NadekoBot/Program.cs
2021-09-06 21:34:46 +02:00