From e801902e8de8d740d9341527a58fa40f5d7485ca Mon Sep 17 00:00:00 2001 From: Brazman Date: Fri, 16 Sep 2022 14:15:09 -0500 Subject: [PATCH] Experiments and config added to gitignore --- .gitignore | 3 +++ SuperMachoBot/Commands/SlashCommands.cs | 17 +++++++++++++++++ SuperMachoBot/SuperMachoBot.csproj | 10 +++++----- SuperMachoBot/Tools/Tools.cs | 5 +++++ 4 files changed, 30 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index dfcfd56..1c35d92 100644 --- a/.gitignore +++ b/.gitignore @@ -348,3 +348,6 @@ MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ + +# Discord server config +Config/ \ No newline at end of file diff --git a/SuperMachoBot/Commands/SlashCommands.cs b/SuperMachoBot/Commands/SlashCommands.cs index 29ad036..1218861 100644 --- a/SuperMachoBot/Commands/SlashCommands.cs +++ b/SuperMachoBot/Commands/SlashCommands.cs @@ -86,6 +86,23 @@ namespace SuperMachoBot.Commands }; await ctx.CreateResponseAsync(embed); } + + [SlashCommand("UserList", "Stores all members in this server as a list.")] + public async Task UserListing(InteractionContext ctx) + { + try{ + var members = ctx.Guild.GetAllMembersAsync().Result; + Console.WriteLine("Obtained list"); + foreach (var member in members) + { + Console.WriteLine(member.Username); + } + } catch (Exception ex) + { + await ctx.CreateResponseAsync(ex.Message.ToString()); + } + await ctx.CreateResponseAsync("bruh"); + } #endregion #region Economy Commands [SlashCommand("Balance", "Checks your balance")] diff --git a/SuperMachoBot/SuperMachoBot.csproj b/SuperMachoBot/SuperMachoBot.csproj index b41a78e..7961848 100644 --- a/SuperMachoBot/SuperMachoBot.csproj +++ b/SuperMachoBot/SuperMachoBot.csproj @@ -9,11 +9,11 @@ - - - - - + + + + + diff --git a/SuperMachoBot/Tools/Tools.cs b/SuperMachoBot/Tools/Tools.cs index 5ccf1a4..80b0d41 100644 --- a/SuperMachoBot/Tools/Tools.cs +++ b/SuperMachoBot/Tools/Tools.cs @@ -48,4 +48,9 @@ namespace SuperMachoBot.Tools { } + + class FunDatabase + { + + } } \ No newline at end of file