Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
8 years ago | |
---|---|---|
docs | 8 years ago | |
experiment | 8 years ago | |
src | 8 years ago | |
test/Discord.Net.Tests | 8 years ago | |
.gitattributes | 10 years ago | |
.gitignore | 8 years ago | |
Discord.Net.sln | 8 years ago | |
Discord.Net.targets | 8 years ago | |
LICENSE | 10 years ago | |
README.md | 8 years ago | |
build.ps1 | 8 years ago | |
pack.ps1 | 8 years ago | |
test.ps1 | 8 years ago |
Discord.Net is an unofficial .NET API Wrapper for the Discord client. Please read the documentation on how to setup the bot and what has been changed in 1.0.
1.0 Documentation: https://discord.foxbot.me/docs/index.html
0.9.6 Documentation: http://rtd.discord.foxbot.me/en/legacy/
Example Bots:
Discord.Net current stable version is 0.9.6 and can be obtained from Nuget Packages.
You can also install other individual components from Nuget or Nuget Package Manager.
The following providers are available for platforms not supporting .NET Standard 1.3:
You can get the Beta build from MyGet. The Beta build version is 1.0.xxx and contains every new feature from discord such as Embeds.
Nightly builds are available through MyGet feed.
In order to compile Discord.Net you will need latest version of Visual Studio 2017 and .Net Core SDK. The .Net Core workload must be selected during Visual Studio Installation.
.NET Core 1.1 does not support WebSockets on Win7 and earlier. It's recommended to use the Discord.Net.Providers.WS4Net package until this is resolved.
Track the issue here.
using System.Threading.Tasks;
using System.Reflection;
using Discord;
using Discord.WebSocket;
using Discord.Commands;
public class Program
{
static void Main(string[] args) => new Program().Start().GetAwaiter().GetResult();
public async Task Start()
{
var client = new DiscordSocketClient();
client.MessageReceived += MessageReceived;
await client.LoginAsync(TokenType.Bot, "YOUR-TOKEN-GOES-HERE");
await client.ConnectAsync();
await Task.Delay(-1);
}
private async Task MessageReceived(SocketMessage message)
{
if (message.Content == "!ping"){
await message.Channel.SendMessageAsync("Pong!");
}
}
}
No Description
C#
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》