文件名称:discord.v:用V编写的Discord Bot框架
文件大小:37KB
文件格式:ZIP
更新时间:2024-05-22 21:15:46
discord wip v discord-bot-framework V
用V ( WIP )编写的又一个功能丰富的Discord Bot框架 例子 import terisback.discordv as vd fn main () { mut client := vd. new (token: ' token ' ) ? client. on_message_create (on_ping) client. run (). wait () } fn on_ping ( mut client vd.Client, evt & vd.MessageCreate) { if evt . content = = ' !ping ' { client. channel_message_send (evt.channel_id, content: ' pong! ' ) or { } } } 更多 如何安装 di
【文件预览】:
discord.v-master
----gateway()
--------commands.v(930B)
--------shard.v(3KB)
--------packets()
--------handlers.v(1KB)
--------websocket.v(2KB)
--------intents.v(878B)
--------events.v(383B)
----.gitattributes(125B)
----snowflake()
--------snowflake.v(932B)
----.github()
--------FUNDING.yml(721B)
--------workflows()
----v.mod(206B)
----eventbus()
--------eventbus.v(2KB)
----client.v(2KB)
----consts.v(2KB)
----examples()
--------ping-pong()
--------send-embed()
--------upload-image()
----LICENSE(1KB)
----README.md(2KB)
----events.v(22KB)
----CODE_OF_CONDUCT.md(43B)
----.gitignore(65B)
----rest.v(3KB)
----rest()
--------formdata()
--------request.v(446B)
--------ratelimit.v(2KB)
--------rest.v(1KB)
----CHANGELOG.md(1KB)
----structs.v(38KB)