showierdata9978 introduces a Python library called Discourse Bot Lib, designed to enable bots to interact with Discourse forums using API keys. The library, hosted on PyPI, allows users to create bots that post or respond on Discourse, with an example shown on Meower.orghere. Canapin asks for clarification, and showierdata9978 confirms it enables bot posting through a dedicated account. Arrow summarizes it as a Python library for Discourse bots. Canapin inquires about practical use cases and rate limits, to which showierdata9978 explains that rate limits are managed by the bot’s message frequency and user permissions. The library uses the standard Discourse API, and 48lexR asks about documentation, prompting showierdata9978 to note that the Discourse API docs serve as a reference. The project is marked as unmaintained, and showierdata9978 mentions their personal use case has ended.
Discourse Bot Lib. The Bot lib for discourse. Made with python
Hi I made a bot lib for Discourse a few days ago, and I’m posting it here to publish it to the wider community.
It is made with python3.9. but should work with 3.8
What is a bot lib
A bot lib is some code that allows you to connect to a server that you can chat on, play games on, etc. It allows you to control an account that you have access to
Here is a working example of a bot (on another discourse forum)
Hi! For those who aren’t versed in savvy stuff, can you explain (briefly, think “Explain Me Like I’m Five” ) what is the purpose of this “bot lib”?
I tried to have a glimpse by searching “python bot lib” on the Internet but the results are quite technical.
My understanding is that this is a script that allows bots to post on Discourse through a single, dedicated Discourse account?
Have you a few examples of practical, real-life purposes?
How would you manage the limit rates?
I had a custom WordPress plugin that allowed WP users to post on Discourse through a single Discourse account (WP comment → Discourse reply). It was barely used, but the post rate limit and the maximum consecutive messages among other things had to be thought about.
So, how do you circumvent these potential issues?
Could you maybe create new Discourse accounts on the fly?
Generally all you need to do is give the user more perms, as its the programmers choice on when they send a message
no i could not. This uses the discourse API.
it is completely separate from the hosting server and uses user API keys that by default can only be generated by an admin user without a plugin