Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
695a91cad4
|
|||
|
|
55ea03df06 | ||
|
|
0d2db04ed5 |
@@ -1,27 +1,3 @@
|
|||||||
image: dock.mau.dev/maubot/maubot
|
include:
|
||||||
|
- project: 'maubot/maubot'
|
||||||
stages:
|
file: '/.gitlab-ci-plugin.yml'
|
||||||
- build
|
|
||||||
|
|
||||||
variables:
|
|
||||||
PYTHONPATH: /opt/maubot
|
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
except:
|
|
||||||
- tags
|
|
||||||
script:
|
|
||||||
- python3 -m maubot.cli build -o xyz.maubot.$CI_PROJECT_NAME-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA.mbp
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "*.mbp"
|
|
||||||
|
|
||||||
build tags:
|
|
||||||
stage: build
|
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
script:
|
|
||||||
- python3 -m maubot.cli build -o xyz.maubot.$CI_PROJECT_NAME-$CI_COMMIT_TAG.mbp
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "*.mbp"
|
|
||||||
|
|||||||
@@ -3,4 +3,3 @@ A simple [maubot](https://github.com/maubot/maubot) that echoes pings and other
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
* `!ping` - Reply with "Pong!" and the time it took for the message to reach the bot.
|
* `!ping` - Reply with "Pong!" and the time it took for the message to reach the bot.
|
||||||
* `!echo <message>` - Reply with the given message
|
|
||||||
|
|||||||
5
echo.py
5
echo.py
@@ -60,8 +60,3 @@ class EchoBot(Plugin):
|
|||||||
"ping": evt.event_id,
|
"ping": evt.event_id,
|
||||||
}
|
}
|
||||||
await evt.respond(content)
|
await evt.respond(content)
|
||||||
|
|
||||||
@command.new("echo", help="Repeat a message")
|
|
||||||
@command.argument("message", pass_raw=True)
|
|
||||||
async def echo_handler(self, evt: MessageEvent, message: str) -> None:
|
|
||||||
await evt.respond(message)
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
maubot: 0.1.0
|
maubot: 0.1.0
|
||||||
id: xyz.maubot.echo
|
id: xyz.maubot.echo
|
||||||
version: 1.4.0
|
version: 1.4.1
|
||||||
license: MIT
|
license: MIT
|
||||||
modules:
|
modules:
|
||||||
- echo
|
- echo
|
||||||
|
|||||||
Reference in New Issue
Block a user