a bot library built on top swagsocial.py
Find a file
2026-08-21 12:30:36 +00:00
src/swagsocialbots bump version 2026-08-21 12:30:36 +00:00
.gitignore Initial commit 2026-08-16 15:06:55 +02:00
LICENSE Initial commit 2026-08-16 15:06:55 +02:00
pyproject.toml bump dep version 2026-08-21 12:26:24 +00:00
README.md fix a mistake in the README.md 2026-08-21 12:10:37 +00:00

swagsocialbots

Now on PyPI: https://pypi.org/project/swagsocialbots/

Python module to make bots in swagsocial with swagsocial.py

Created by maxie!

Getting your API key

Log into your desired swagsocial account and go to Settings --> API, or click this link

If you would like to grant manage post permissions, which includes making posts and replies. It also allows deleting posts and replies, so be careful!

an example

from swagsocialbots import SwagBot
import time

bot = SwagBot()

@bot.on_mention() # will reply to a post the bot is tagged on
def on_mention(ctx):
    ctx.reply(f"Hello, @{ctx.post.author.username}")

# will do anything in a forever loop, useful for bots that
# post something every N amount of time
@bot.forever_loop()
def forever():
    bot.post("meow")
    time.sleep(3600) # bot will post "meow" every 1 hour

bot.run("api key")