-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
258 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# StickersBot | ||
|
||
[![Latest Release](https://img.shields.io/pypi/v/stickersbot.svg)](https://pypi.org/project/stickersbot) | ||
[![CI](https://github.com/deltachat-bot/stickersbot/actions/workflows/python-ci.yml/badge.svg)](https://github.com/deltachat-bot/stickersbot/actions/workflows/python-ci.yml) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
|
||
Delta Chat bot that allows users to get stickers packs and convert normal images to stickers. | ||
|
||
## Installation and configuration | ||
|
||
```sh | ||
pip install stickersbot | ||
``` | ||
|
||
Configure the bot: | ||
|
||
```sh | ||
stickersbot init [email protected] PASSWORD | ||
``` | ||
|
||
Start the bot: | ||
|
||
```sh | ||
stickersbot serve | ||
``` | ||
|
||
Run `stickersbot --help` to see all available options. | ||
|
||
## Usage | ||
|
||
To get sticker packs, browse https://signalstickers.com/ and copy the URL of the pack you want (the link in the "+ Add to Signal" button, an URL starting with ``https://signal.art/addstickers``) and send the pack URL to the bot in private, the bot will send you a zip with the sticker pack. | ||
|
||
To create an sticker from a normal image send the image to the bot and it will send you back the image as sticker. | ||
|
||
Send any text to the bot to search packs matching the given text. | ||
|
||
Send an emoji to the bot to get a random sticker associated with that emoji. |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,53 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=45", | ||
"setuptools-scm>=6.2", | ||
"wheel", | ||
] | ||
requires = ["setuptools>=64", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "stickersbot" | ||
description = "Sticker packs for all your Delta Chat needs" | ||
dynamic = ["version"] | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE"} | ||
keywords = ["deltachat", "bot"] | ||
authors = [ | ||
{name = "adbenitez", email = "[email protected]"}, | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3", | ||
] | ||
dependencies = [ | ||
"deltabot-cli>=3.0.0,<4.0", | ||
"signalstickers-client>=3.1.0", | ||
"emoji>=1.6.1", | ||
"cachelib>=0.7.0", | ||
"requests>=2.26.0", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black", | ||
"mypy", | ||
"isort", | ||
"pylint", | ||
"pylama", | ||
"pytest", | ||
"types-emoji", | ||
"types-requests", | ||
] | ||
|
||
[project.scripts] | ||
stickersbot = "stickersbot:main" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "simplebot_stickers/_version.py" | ||
# can be empty if no extra settings are needed, presence enables setuptools_scm | ||
|
||
[tool.setuptools] | ||
packages = ["stickersbot"] | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = "True" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.