mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 16:47:22 +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);
|
userList.Count, processedUsers, totalRoles + addedRoles, addedRoles, kickedUsers, toRemoveUsers, freshUsers);
|
||||||
foreach (var user in userList)
|
foreach (var user in userList)
|
||||||
{
|
{
|
||||||
|
if (user.IsBot) continue;
|
||||||
|
|
||||||
if (registeredUsers.Contains(user.Id))
|
if (registeredUsers.Contains(user.Id))
|
||||||
{
|
{
|
||||||
bool roleAdded = await _botServices.AddRegisteredRoleAsync(user, registrationRole).ConfigureAwait(false);
|
bool roleAdded = await _botServices.AddRegisteredRoleAsync(user, registrationRole).ConfigureAwait(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue