All Projects → KrazyKirby99999 → simple-matrix-bot-lib

KrazyKirby99999 / simple-matrix-bot-lib

Licence: MIT License
An easy to use bot library for the Matrix ecosystem written in Python. https://matrix.to/#/#simplematrixbotlib:matrix.org

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to simple-matrix-bot-lib

Maubot
A plugin-based Matrix bot system.
Stars: ✭ 226 (+737.04%)
Mutual labels:  matrix, asyncio
Aiogram
Is a pretty simple and fully asynchronous framework for Telegram Bot API written in Python 3.7 with asyncio and aiohttp.
Stars: ✭ 2,195 (+8029.63%)
Mutual labels:  bot-framework, asyncio
Opsdroid
🤖 An open source chat-ops bot framework
Stars: ✭ 563 (+1985.19%)
Mutual labels:  bot-framework, asyncio
hikari
A Discord API wrapper for Python and asyncio built on good intentions.
Stars: ✭ 631 (+2237.04%)
Mutual labels:  bot-framework, asyncio
caligo
SelfBot for Telegram
Stars: ✭ 34 (+25.93%)
Mutual labels:  asyncio
hypercorn-fastapi-docker
Docker image with Hypercorn for FastAPI apps in Python 3.7, 3.8, 3.9. Ready for HTTP2 and HTTPS
Stars: ✭ 18 (-33.33%)
Mutual labels:  asyncio
PepperBot
An intuitive multi-platform bot framework, write once, run everywhere. 一个符合直觉的跨社交平台机器人框架,轻松地在平台间传递消息,支持QQ、微信
Stars: ✭ 21 (-22.22%)
Mutual labels:  asyncio
fastapi-sqlalchemy-1.4-async
https://rogulski.it/blog/sqlalchemy-14-async-orm-with-fastapi/
Stars: ✭ 17 (-37.04%)
Mutual labels:  asyncio
tombot
A Commerce Bot for Facebook Messenger using Scala and Akka.
Stars: ✭ 16 (-40.74%)
Mutual labels:  bot-framework
ph-commons
Java 1.8+ Library with tons of utility classes required in all projects
Stars: ✭ 23 (-14.81%)
Mutual labels:  matrix
aiohttp-socks
Proxy (HTTP, SOCKS) connector for aiohttp
Stars: ✭ 147 (+444.44%)
Mutual labels:  asyncio
AmimeWatch
Telegram bot made in Python 3 using the @pyrogram framework.
Stars: ✭ 19 (-29.63%)
Mutual labels:  asyncio
aiohttp traversal
Traversal based router for aiohttp.web
Stars: ✭ 21 (-22.22%)
Mutual labels:  asyncio
symphony-java-toolkit
Spring Boot + Java Integration for Symphony/Teams Chat Platform Bots and Apps
Stars: ✭ 24 (-11.11%)
Mutual labels:  bot-framework
p3ui
C++ & Python User Interface Library
Stars: ✭ 21 (-22.22%)
Mutual labels:  asyncio
hands-on-bots-node
Repositório responsável pelas vídeo aulas inerentes a nova série do canal: Hands on
Stars: ✭ 32 (+18.52%)
Mutual labels:  bot-framework
asyncio-mqtt
Idomatic asyncio wrapper around paho-mqtt
Stars: ✭ 137 (+407.41%)
Mutual labels:  asyncio
binance-chain-python
Binance chain SDK in Python
Stars: ✭ 22 (-18.52%)
Mutual labels:  asyncio
asyncer
Asyncer, async and await, focused on developer experience.
Stars: ✭ 572 (+2018.52%)
Mutual labels:  asyncio
mitm
👨🏼‍💻 ‎‎‎‏‏ A customizable man-in-the-middle TCP proxy.
Stars: ✭ 44 (+62.96%)
Mutual labels:  asyncio

Simple-Matrix-Bot-Lib

(Version 2.6.1)

Simple-Matrix-Bot-Lib is a Python bot library for the Matrix ecosystem built on matrix-nio.

View on Github or View on PyPi or View docs on readthedocs.io

Learn how you can contribute here.

Installation

simplematrixbotlib can be either installed from PyPi or downloaded from github.

Installation from PyPi:

python -m pip install simplematrixbotlib

Download from github:

git clone --branch master https://github.com/KrazyKirby99999/simple-matrix-bot-lib.git

Example Usage

# echo.py
# Example:
# randomuser - "!echo example string"
# echo_bot - "example string"

import simplematrixbotlib as botlib

creds = botlib.Creds("https://home.server", "echo_bot", "pass")
bot = botlib.Bot(creds)
PREFIX = '!'

@bot.listener.on_message_event
async def echo(room, message):
    match = botlib.MessageMatch(room, message, bot, PREFIX)

    if match.is_not_from_this_bot() and match.prefix() and match.command("echo"):

        await bot.api.send_text_message(
            room.room_id, " ".join(arg for arg in match.args())
            )

bot.run()

More information and examples can be found here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].