您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
|
|
5 年前 | |
|---|---|---|
| Dockerfile | 5 年前 | |
| LICENSE.md | 6 年前 | |
| README.md | 6 年前 | |
| bot.ps1 | 5 年前 | |
README.md
You can discuss this bot in #pingposh:imninja.net
This is a simple Matrix bot to participate in #ping:maunium.net
Features
It automatically joins on invites. If someone sends a !ping or !ping <text>, it echoes back an m.notice with the following attributes:
"pong": {
"ms": <difference of origin_server_ts and now>,
"from": "<origin homeserver>",
"ping": "<!ping event>"
}
Configuration
It is configured via command line parameters or environment variables. Have a look at the param block at the beginning of bot.ps1 for all configuration options.
Example configuration with environment variables:
HOMESERVER: 'http://synapse:8008'
USERID: '@pingposh:imninja.net'
ACCESSTOKEN_FILE: '/run/secrets/pingposh_accesstoken'
UNENCRYPTED: 'TRUE'