mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 15:07:23 +01:00
don't kick bots lmao
This commit is contained in:
parent
7d74cecdfd
commit
1379ced836
1 changed files with 2 additions and 0 deletions
|
|
@ -277,6 +277,8 @@ internal class DiscordBot : IHostedService
|
|||
userList.Count, processedUsers, totalRoles + addedRoles, addedRoles, kickedUsers, toRemoveUsers, freshUsers);
|
||||
foreach (var user in userList)
|
||||
{
|
||||
if (user.IsBot) continue;
|
||||
|
||||
if (registeredUsers.Contains(user.Id))
|
||||
{
|
||||
bool roleAdded = await _botServices.AddRegisteredRoleAsync(user, registrationRole).ConfigureAwait(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue