Skip to content
Permalink
Browse files

Merge pull request #55 from MrSpinne/unstable

Unstable
  • Loading branch information...
MrSpinne committed Aug 31, 2019
2 parents c2108fc + 420ee9e commit c8e2df3860f5d3d8ec9779fdefed30946e167450
Showing with 975 additions and 2,056 deletions.
  1. +2 −2 .codacy.yml
  2. +4 −1 .github/README.md
  3. +1 −13 .travis.yml
  4. +1 −1 Dockerfile
  5. +11 −2 data/config.ini
  6. +19 −0 docs/Makefile
  7. +0 −14 docs/categories/index.xml
  8. +0 −9 docs/css/custom.css
  9. +0 −1 docs/css/icons.css
  10. +0 −1 docs/css/style.min.fa16acdbc2d939e3da23d7d66107f16c7e8099da31b66c6df71be74f9364acd8.css
  11. BIN docs/fonts/fontawesome-webfont.woff2
  12. BIN docs/fonts/fontello.woff
  13. BIN docs/fonts/simple-line-icons.ttf
  14. BIN docs/images/apple-touch-icon.png
  15. BIN docs/images/favicon.png
  16. BIN docs/images/illustrations/faces/Apollo24.png
  17. BIN docs/images/illustrations/faces/Bidoof.png
  18. BIN docs/images/illustrations/faces/JustPh03n1x.png
  19. +0 −30 docs/images/illustrations/icons/doc-sync.svg
  20. +0 −30 docs/images/illustrations/icons/laptop-cloud.svg
  21. +0 −32 docs/images/illustrations/icons/laptop-globe.svg
  22. +0 −36 docs/images/illustrations/icons/mobile-feed.svg
  23. +0 −32 docs/images/illustrations/icons/mouse-globe.svg
  24. +0 −23 docs/images/illustrations/icons/plug-cloud.svg
  25. BIN docs/images/illustrations/mockups/discord-invite.png
  26. BIN docs/images/illustrations/shiro-rounded.png
  27. +0 −29 docs/images/loaders/audio.svg
  28. +0 −47 docs/images/loaders/ball-triangle.svg
  29. +0 −52 docs/images/loaders/bars.svg
  30. +0 −20 docs/images/loaders/circles.svg
  31. +0 −56 docs/images/loaders/grid.svg
  32. +0 −18 docs/images/loaders/hearts.svg
  33. +0 −17 docs/images/loaders/oval.svg
  34. +0 −37 docs/images/loaders/puff.svg
  35. +0 −42 docs/images/loaders/rings.svg
  36. +0 −55 docs/images/loaders/spinning-circles.svg
  37. +0 −32 docs/images/loaders/tail-spin.svg
  38. +0 −33 docs/images/loaders/three-dots.svg
  39. +0 −5 docs/images/logos/bulma.svg
  40. +0 −1 docs/images/logos/clients/anime.svg
  41. +0 −1 docs/images/logos/clients/fun.svg
  42. +0 −1 docs/images/logos/clients/game.svg
  43. +0 −1 docs/images/logos/clients/music.svg
  44. +0 −35 docs/images/logos/fresh-alt.svg
  45. +0 −12 docs/images/logos/fresh-square.svg
  46. +0 −35 docs/images/logos/fresh-white-alt.svg
  47. +0 −75 docs/images/logos/fresh-white.svg
  48. +0 −76 docs/images/logos/fresh.svg
  49. +0 −17 docs/images/logos/icon-logo.svg
  50. BIN docs/images/logos/shiro-logo-white.png
  51. BIN docs/images/logos/shiro-logo.png
  52. +0 −491 docs/index.html
  53. +0 −14 docs/index.xml
  54. +0 −47 docs/js/custom.js
  55. +0 −144 docs/js/fresh.js
  56. +0 −1 docs/js/jquery.panelslider.min.js
  57. +0 −2 docs/js/sweetalert2.all.min.js
  58. +35 −0 docs/make.bat
  59. +1 −0 docs/requirements.txt
  60. +0 −20 docs/sitemap.xml
  61. +181 −0 docs/source/conf.py
  62. +27 −0 docs/source/index.rst
  63. +19 −0 docs/source/license.rst
  64. +68 −0 docs/source/source.rst
  65. +0 −14 docs/tags/index.xml
  66. +0 −3 extensions/songs.py
  67. +178 −0 extensions/stats.py
  68. +0 −102 library/statposter.py
  69. +206 −0 library/statsposter.py
  70. +0 −59 library/tests.py
  71. +197 −190 locales/template.pot
  72. +3 −1 requirements.txt
  73. +22 −44 shiro.py
@@ -2,6 +2,6 @@
exclude_paths:
- Dockerfile
- "data/**"
- "docs/**"
- ".github/**"
- "**/*.yml"
- "**/*.yml"
- "docs/**"
@@ -1,6 +1,9 @@
<img align="right" src="https://shiro.pro/images/apple-touch-icon.png" alt="Shiro Avatar" height="220" width="220">

# Shiro.py - Work in progress
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d668927a72f14c19b23ca9a0ed71fb20)](https://www.codacy.com/app/MrSpinne/Shiro.py?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=MrSpinne/Shiro.py&amp;utm_campaign=Badge_Grade)
[![Build Status](https://travis-ci.org/MrSpinne/Shiro.py.svg?branch=master)](https://travis-ci.org/MrSpinne/Shiro.py)
[![Documentation Status](https://readthedocs.org/projects/shiropy/badge/?version=latest)](https://docs.shiro.pro/en/latest/?badge=latest)
[![Crowdin](https://badges.crowdin.net/shiro-py/localized.svg)](https://translate.shiro.pro)

![Python Version](https://img.shields.io/badge/python-3.7-blue)
@@ -123,4 +126,4 @@ Below are all bot lists, Shiro is currently on. (Only lists with widget shown)
[<img src="https://discordbotlist.com/bots/593116701281746955/widget" height="150">](https://discordbotlist.com/bots/593116701281746955)
[<img src="https://divinediscordbots.com/api/widget/593116701281746955.svg" height="150">](https://divinediscordbots.com/bot/593116701281746955)
[<img src="https://discord.boats/api/widget/593116701281746955" height="150">](https://discord.boats/bot/593116701281746955)
[<img src="https://bots.ondiscord.xyz/bots/593116701281746955/embed?theme=dark&showGuilds=true" height="150">](https://bots.ondiscord.xyz/bots/593116701281746955)
[<img src="https://bots.ondiscord.xyz/bots/593116701281746955/embed?theme=dark&showGuilds=true" height="150">](https://bots.ondiscord.xyz/bots/593116701281746955)
@@ -1,19 +1,7 @@
jobs:
include:
- stage: update translations
language: python
python: "3.7"
env:
- PROJECT_IDENTIFIER=shiro-py
- secure: j2bKc+N9jWnlfCOJZ8G2xHeyGQb40St2bgfa/qhwyhiICR2WvKikRRIuerCSnj1rghzaZoEad5WExW8ItMPPbZ99QRPFWoXpYQIvAfcDiBHwt+24fY2tbfvrgi2dkaHPB6rHM2W+4QoxnD1lkOLXH8ab7swcVhidIP9pRWJMctMcds7VrNY3I59UZb52XpTUmaz5P/tpRR06QIdzsKbkBrAnRtxqVqOR9/M5odhxwcJq083ZUa7hMvTHSQvcUK0cynTrv4HHjClTLxfgF4xb5BFBNr14+X+M5+sHJBzK5iLrMn1+gn2YG+KHM5OhCH+tKMzl67cINMG7iBVnXDeqIXhyIHfrrMfJrFHSywvjgBHye72HsL5ngizs2S6US4IKwBocZozpyqmkccyvADqsuE3Ch8UwZkfaTPsdyskMSgnh8fOlz9XQUiopOIbHi1pH+2S9XY87wiBOGLI5rJsefZCuX9KgnYiMlXdiU4CKRcdagyN2AYWh+soeGdrrdWOZaGYkv7n6pGxVVVMYrDNAwoKvwvgviD1h1V5pP9/Dkm3XQOcetFWAHIarbgSZc+/o6V/ywVboVW077Bj5h1OVac/neTFOZ20s30jzgeVuFygnwriiYYhHPplSkQNaM0ZOZJStg94ZqSP4du4PgnB8GOSXp5OQFRPdvmbXFeXQ1js=
install:
- pip install polib
- echo "import polib\n\npo_file = polib.POFile()\npo_file.metadata = {\n'Project-Id-Version': '1.0',\n'Report-Msgid-Bugs-To': 'you@example.com',\n'POT-Creation-Date': '2007-10-18 14:00+0100',\n'PO-Revision-Date': '2007-10-18 14:00+0100',\n'Last-Translator': 'you <you@example.com>',\n'Language-Team': 'English <yourteam@example.com>',\n'MIME-Version': '1.0',\n'Content-Type': 'text/plain; charset=utf-8',\n'Content-Transfer-Encoding': '8bit',\n}\n\nfor entry in polib.pofile('template.pot'):\npo_entry = polib.POEntry(msgid=entry.msgid, msgstr=entry.msgid)\npo_file.append(po_entry)\n\npo_file.save('en-US.po')\n" > script.py
script:
- wget -O template.pot "https://api.crowdin.com/api/project/$PROJECT_IDEMTIFIER/export-file?key=$API_KEY&file=/master/locales/template.pot&language=en-US"
- python script.py
- curl -F "files[en-US.po]=@en-US.po" -F "language=en-US" -F "auto_approve_imported=1" https://api.crowdin.com/api/project/$PROJECT_IDENTIFIER/upload-translation?key=$API_KEY
- stage: build docker image
if: branch = master or branch = unstable
env:
- DOCKER_USERNAME=mrspinne
- secure: EpUfXKASylABRk5lFhaec5HFE6RikGgoXOf3TAUaNegS2G/cEEXLhfH3mDM1zGg2YyIG6Ut/6wKJ4v07XLGJQngNTSog5jZr7s27r4q+kb2y1sFMm3K50LcXpAFZw/aGh05WxMUlW3s5YvgCa0z09he3G2fps6AUxtzzS6HYbax97fcloqa6dA68J6/nEpCLE+yHvwzT7V75RCk6INOd66vOdotL2RE/s6sbWohV1mf0sZI2husr4WsfeN9i+BsUD+pmoswJw5pSKtLK3RgjHdHayfKzZvrZh8NSKeuvz+zxUwalXR9RLjfByyj9Y5y8vB9LATkyDMUcBQ6xUQh99sbYMohmSpgLl57ta9zydr6kA2vvsSIihw4aJE4rC505CFx7oRTq3BEaBqxJ4Uv/wUext5sNnlkt40a5vZuvRgygWJu9QT+iVZPf6nSHqV5GJociG22AG3UW8/GMqEACnap0AOzXJj3m6MB5Y9OL7kGK1WQf6w9xQoCKOQtphJgqj3LHJeSpCPOlfRaMPDxDp3GWpHR6bwI/d0Ca6qFIZjAZ263MoXV8m/S4v2T+1UE3BUM6hRG6EudMZ82FjFhLe7n7Mida2ds+iRQgzxoTM5UzB+d+Ji83mp+xjoAN2P4J3C/h1q/FZdwyf+AA1uTuklDlBn1gEOz7JB5VlVlfL7s=
@@ -1,5 +1,5 @@
FROM python:3.7
MAINTAINER MrSpinne <spinningplays.gaming@gmail.com>
MAINTAINER MrSpinne <contact@shiro.pro>

COPY . .
RUN pip install -r requirements.txt
@@ -24,8 +24,17 @@ client_id =
private_key =
private_key_id =

[Botlist] # optional
discordbots =
[Datadog] # optional
api_key =
app_key =

[Discordbots] # optional
api_key =
webhook_auth =
webhook_path =
webhook_port =

[Botlists] # optional
divinediscordbots =
discordbotreviews =
mythicalbots =
@@ -0,0 +1,19 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN -679 Bytes docs/images/favicon.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

0 comments on commit c8e2df3

Please sign in to comment.
You can’t perform that action at this time.