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/
# Discord server config
**/Config/config.json

View File

@ -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")]

View File

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

View File

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

View File

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