這是一個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
字體(否則,它將使用系統具有的任何字體)。