Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmdr-nova/chatter-bot
A bot that posts random predefined statuses on Mastodon, and also replies to mentions with random, predefined statuses.
https://github.com/cmdr-nova/chatter-bot
activitypub bot chat fediverse mastodon repllies statuses
Last synced: 9 days ago
JSON representation
A bot that posts random predefined statuses on Mastodon, and also replies to mentions with random, predefined statuses.
- Host: GitHub
- URL: https://github.com/cmdr-nova/chatter-bot
- Owner: cmdr-nova
- Created: 2024-10-08T16:04:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-25T10:06:17.000Z (about 2 months ago)
- Last Synced: 2024-11-03T22:31:02.236Z (about 2 months ago)
- Topics: activitypub, bot, chat, fediverse, mastodon, repllies, statuses
- Language: Python
- Homepage: https://mkultra.monster/@net_run
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chatter-bot
A bot that posts random predefined statuses on Mastodon, and also replies to mentions with random, predefined statuses.First, do the pip!
```
pip install mastodon.py
```Then, put the script onto your server!
```
nano path/to/script/chatter-bot.py
```Don't forget to also crreate the statuses and replies!
```
nano path/to/script/statuses.json
``````
nano path/to/script/replies.json
```Then, schedule it! This is not a bot that is running at all times, so statuses and replies will go out *only* when it runs (to conserve resources, we don't need a bot that's up and running at all times).
```
chmod +x path/to/script/chatter-bot.py
``````
crontab -e
``````
*/15 * * * * /path/to/your/virtualenv/bin/python /path/to/chatter-bot/chatter-bot.py
```Set to run every 15 minutes, and to use a virtual environment (I prefer to do this cause it's easier to use pip that way, and there's less margin for error).
You're finished!
See it running in action, [here](https://mkultra.monster/@net_run).