-
Notifications
You must be signed in to change notification settings - Fork 3
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
0 parents
commit 21e3135
Showing
80 changed files
with
5,506 additions
and
0 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
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/ |
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,6 @@ | ||
FROM python:3.8-slim | ||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
RUN mkdir /app | ||
WORKDIR /app | ||
COPY . /app |
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,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 |
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,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)) |
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,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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -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 |
Oops, something went wrong.