这是一个P Higros的核心L Ookup Discord Bot(又名PSLDiscordBot),
您可以使用/get-photo
, /get-scores
或/export-scores
等获得分数。
这是一些显示的图片:
/get-photo
,非常感谢UI Rework的Discord用户Foxtrot!
/get-scores
/about-me
Discord服务器
检查help.md
资源在https://github.com/yt6983138/psldiscordbot_resources中
您可以通过在program.cs中的字典命令中添加函数来添加自定义命令。请参见以下示例:
// look at CommandBase.cs for more info
// attribute to add to global command, without this command wont be added
[ AddToGlobal ]
public class HelpCommand : // CommandBase or GuestCommandBase or AdminCommandBase, depends on comand type
{
public override string Name => /* command name */ ;
public override string Description => /* command description */ ;
public override SlashCommandBuilder CompleteBuilder =>
this . BasicBuilder ;
// use .AddOption to add option and add other things
public override async Task Callback (
SocketSlashCommand arg ,
UserData ? data ,
DataBaseService . DbDataRequester requester ,
object executer )
{
// actual callback, note you do not need arg.DeferAsync, already did that in Execute
}
}
发布时:
这是一个跨平台项目,只需记住不要与“修剪未使用的代码”编译,它将破坏JSON的问题。
另外,请记住安装Saira
和Saira ExtraCondensed
字体(否则,它将使用系统具有的任何字体)。