Compare commits

...

3 commits

5 changed files with 30 additions and 11 deletions

3
.gitignore vendored
View file

@ -348,3 +348,6 @@ MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder # Ionide (cross platform F# VS Code tools) working folder
.ionide/ .ionide/
# Discord server config
**/Config/config.json

View file

@ -86,6 +86,23 @@ namespace SuperMachoBot.Commands
}; };
await ctx.CreateResponseAsync(embed); 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 #endregion
#region Economy Commands #region Economy Commands
[SlashCommand("Balance", "Checks your balance")] [SlashCommand("Balance", "Checks your balance")]

View file

@ -1,6 +0,0 @@
[
{
"token": "",
"OwnerID": 0
}
]

View file

@ -9,11 +9,11 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="DSharpPlus" Version="4.3.0-nightly-01146" /> <PackageReference Include="DSharpPlus" Version="4.3.0-nightly-01171" />
<PackageReference Include="DSharpPlus.CommandsNext" Version="4.2.0-nightly-01091" /> <PackageReference Include="DSharpPlus.CommandsNext" Version="4.3.0-nightly-01171" />
<PackageReference Include="DSharpPlus.Interactivity" Version="4.2.0-nightly-01091" /> <PackageReference Include="DSharpPlus.Interactivity" Version="4.3.0-nightly-01171" />
<PackageReference Include="DSharpPlus.Lavalink" Version="4.3.0-nightly-01146" /> <PackageReference Include="DSharpPlus.Lavalink" Version="4.3.0-nightly-01171" />
<PackageReference Include="DSharpPlus.SlashCommands" Version="4.3.0-nightly-01146" /> <PackageReference Include="DSharpPlus.SlashCommands" Version="4.3.0-nightly-01171" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2-beta2" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.2-beta2" />
<Protobuf Include="**/*.proto" /> <Protobuf Include="**/*.proto" />
</ItemGroup> </ItemGroup>

View file

@ -48,4 +48,9 @@ namespace SuperMachoBot.Tools
{ {
} }
class FunDatabase
{
}
} }