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

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.dev5.tar.gz (15.7 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.dev5-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swagsocialbots-1.0.0.dev5.tar.gz
  • Upload date:
  • Size: 15.7 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.dev5.tar.gz
Algorithm Hash digest
SHA256 106858ac31af87acaa0732cc726ccfdcad77c11ea88c40edbb97bb6b85de9da9
MD5 494e6ea2adbdf8c0d624abb260990cc2
BLAKE2b-256 4042b62ae3a4c48f8617afbc999c81d49e34cc8b3cad69e590283a2d355f47fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swagsocialbots-1.0.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 7a762cc5d3a254491a377747061fafd57594e7b3b4f64d2ce6248a9894228d23
MD5 8944d97646c90fec5c76b7f7a844c422
BLAKE2b-256 e62351b0d1d4c8ebd23cffc2d3561dc6cf543037b536982d144933da16551e10

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