Experiments and config added to gitignore

This commit is contained in:
Brazman 2022-09-16 14:15:09 -05:00
parent 5da3b3de02
commit e801902e8d
4 changed files with 30 additions and 5 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/

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

@ -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
{
}
} }