Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions SysBot.Pokemon.Discord/Commands/General/InfoModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,11 @@ public class InfoModule : ModuleBase<SocketCommandContext>
private const string detail = "I am an Open Source RaidBot powered by PKHeX.Core and other open-source software.";
public const string version = SVRaidBot.Version;
private const string support = SVRaidBot.Repo;
private const ulong DisallowedUserId = 195756980873199618;

[Command("info")]
[Alias("about", "whoami", "owner")]
public async Task InfoAsync()
{
if (Context.User.Id == DisallowedUserId)
{
await ReplyAsync("We don't let shady people use this command.").ConfigureAwait(false);
return;
}
var app = await Context.Client.GetApplicationInfoAsync().ConfigureAwait(false);
var programIconUrl = "https://raw.githubusercontent.com/hexbyt3/sprites/main/imgs/icon4.png";
var builder = new EmbedBuilder
Expand Down Expand Up @@ -86,4 +80,4 @@ private static string GetVersionInfo(string assemblyName)
return _default;
}
}
}
}
Loading