我有問題創建依賴關係圖,因爲我認爲它是Discord.Commands的一部分。我能找到的所有樣本和機器人都已經在使用同一行,但我的視覺工作室認爲這是一個錯誤。 using System;
using System.Reflection;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using
我正在製作一個不和諧的機器人,對c#編碼幾乎沒有任何經驗。我得到了一個基本的命令結構,但我無法實現一個無限循環定時器,它將每小時運行一次命令到代碼中。我已經得到足夠的地方,在命令的工作和隨機我只是不能得到小時計時器。任何幫助是極大的讚賞。 using Discord;
using Discord.Commands;
using System;
using System.Collections
所以我想創建一個命令,其中用戶在命令中輸入其他內容並且正在定義字符串。該字符串稍後用於將用戶重定向到網站。 含義: //The string is defined here by user (string = what user typed in after "command") (how?)
commands.CreateCommand("command", string add_link)