Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jan 28, 2024
1 parent c4586df commit bc057e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ from deltabot_cli import BotCli, events

cli = BotCli("echobot")


@cli.on(events.RawEvent)
def log_event(event):
logging.info(event)


@cli.on(events.NewMessage)
def echo(event):
event.chat.send_text(event.text)

msg = event.msg
event.rpc.misc_send_text_message(event.accid, msg.chat_id, msg.text)

if __name__ == "__main__":
cli.start()
Expand Down

0 comments on commit bc057e9

Please sign in to comment.