Skip to content

gonebot-dev/gonedemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gonedemo

A demo of gonebot.

Simple Usage

There are two steps to build a gonebot.

  1. Load plugins.
gonebot.LoadPlugin(builtinplugins.Echo)
  1. Start gonebot backend.
gonebot.StartBackend("onebot11")

If successfully connected to your frontend, then congratulations, your bot is alive.

Default Onebot11 configuation

Take Lagrange.Onebot as an example.

{
    "Type": "ReverseWebSocket",
    "Host": "127.0.0.1",
    "Port": 2048,
    "Suffix": "/onebot/v11/ws",
    "ReconnectInterval": 5000,
    "HeartBeatInterval": 5000,
    "AccessToken": ""
}

About

A usage demo of gonebot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages