MyBot/docs/en/config.md
2024-10-23 10:42:57 +08:00

1.5 KiB
Raw Blame History

Main Configuration File

authorization

::: warning Experimental

There may be a Bug in this function (the token configuration item is not found in the author's test environment). if there is a BUG, please submit feedback to the author through Github Issues or Gitea ticket

:::

enable

should use authorization?

  • type boolean
  • valuetrue false
  • example
    enable: false
    

token

The token used on the authorization

  • type string
  • can be empty when not using authorization
  • example
    token: ""
    

fallback

command

when command executing have errors sends message

  • typestring
  • example
    command: Invalid command! 
    

errorUncaught

Message sent when instruction execution fails

  • typestring
  • example
    errorUncaught: Error while command is running!
    

friend

autoAccept

Whether to automatically apply through friends

  • typeboolean
  • valuestrue false
  • example
    autoAccept: true
    

group

autoAccept

Automatically through group invitation

  • typeboolean
  • valuestrue false
  • example
    autoAccept: true
    

websocket

ws connection address

  • typestring
  • example
    websocket: ws://127.0.0.1:3001