Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
slavking committed Nov 6, 2022
0 parents commit 21e3135
Show file tree
Hide file tree
Showing 80 changed files with 5,506 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
__pycache__/
*.pyc
*.png
*.jpg
*.jpeg
config.py
*.swp
*.txt
!requirements.txt
*.webm
.idea/*
tmp/
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.8-slim
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN mkdir /app
WORKDIR /app
COPY . /app
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Hello friends this is the running version of anna3 on the kotchan.org website

please feel free to contribute

written by sadfrog
refactored by sadfrog

now maintained by Stef the Spineless
36 changes: 36 additions & 0 deletions anna.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding: utf-8
import argparse
import livechanapi
import config
import commands
import postlog
import fakeposter
import hourly
import links
import aiohttp
import asyncio
# import push

loop = asyncio.get_event_loop()


async def process_chat(data):
# push.push(data)

if data.get('trip') == config.bot_trip_encoded and data['name'] == config.bot_name:
return

await postlog.log_post(data)

for command in commands.commands:
loop.create_task(command(data))

loop.create_task(links.process_links(data))
# await fakeposter.fake_mirri(data)
# await fakeposter.fake_post(data)


if __name__ == '__main__':
# import signalhandler
loop.create_task(hourly.hourly())
loop.run_until_complete(livechanapi.updater(process_chat))
14 changes: 14 additions & 0 deletions bitbucket-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
image: atlassian/default-image:2
pipelines:
default:
- step:
deployment: production
script:
- pipe: atlassian/ssh-run:0.2.2
variables:
SSH_USER: 'ph'
SERVER: 'kotchan.org'
PORT: 666
SSH_KEY: $SSH_KEY
MODE: 'command'
COMMAND: 'sh -c "cd /home/ph/anna3 && git checkout -f && git pull && supervisorctl restart map"' # path to a script in your repository
Binary file added cats/1394654901307.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1399730009001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1399907854626.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1400082096001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1400363770001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1406721529291.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1406959141001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1448045983004-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1448104186002-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1448105083002-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1451611285001-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1457471915001-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1461480043003-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1471971105001-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1481668133001-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1484402314001-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/1493464721001-int.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/24043-1qi4kti.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/24043-6mwqrw.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/cat boxes itself.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/cat.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/gif-gifka-kotik-milota-828839.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cats/lazy kot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions change_email.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "oldworkemail@company" ];
then
GIT_AUTHOR_NAME="Stef the Spineless";
GIT_AUTHOR_EMAIL="[email protected]";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
Loading

0 comments on commit 21e3135

Please sign in to comment.