นี่ คือ Core l ookup discord bot (aka psldiscordbot)
คุณสามารถรับคะแนนของคุณได้โดยใช้ /get-photo
/get-scores
หรือ /export-scores
ฯลฯ
นี่คือภาพบางส่วนที่แสดง:
/get-photo
ขอบคุณมากสำหรับผู้ใช้ Discord Foxtrot สำหรับ UI rework!
/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
(มิฉะนั้นจะใช้แบบอักษรใด ๆ ที่ระบบมี)