Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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, @{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")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swagsocialbots-1.0.0.dev4.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swagsocialbots-1.0.0.dev4-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file swagsocialbots-1.0.0.dev4.tar.gz.

File metadata

  • Download URL: swagsocialbots-1.0.0.dev4.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for swagsocialbots-1.0.0.dev4.tar.gz
Algorithm Hash digest
SHA256 8722043d498ca02fe4bb8c7e39a8b8d6db864348e8fef37680922d96e6432739
MD5 d96ee81b417481e79e539a07aa8af00a
BLAKE2b-256 9a8f1aed452fe92a1267ac63ef0c82d0a915cec0194d4eed64d5452de051996a

See more details on using hashes here.

File details

Details for the file swagsocialbots-1.0.0.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for swagsocialbots-1.0.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 29c1d710bb16dd08e83dad295e01d3edd7ba78862ff3c71f558313dafd05c7b3
MD5 930616ce4a7e1d6b432cf01d8f31ef5f
BLAKE2b-256 5a65e72cf15d77afa1b349274167e30d504e3c3616e9f50053966fc988f3abaf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page