Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/FAForever/QAI
Browse files Browse the repository at this point in the history
  • Loading branch information
Bra1nwash3d authored and Bra1nwash3d committed Aug 28, 2017
2 parents 6a0c82c + 5817e71 commit b412693
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: python

python:
- "2.7"
- "3.5"

install:
- cp fafbot.conf.example fafbot.conf
- wget https://raw.githubusercontent.com/FAForever/server/develop/passwords.py.example -O passwords.py
- cp config.ini.example config.ini
- pip install -r requirements.txt
- pip install pytest-cov python-coveralls

Expand Down
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.5

RUN pip install --upgrade pip
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

COPY requirements.txt /tmp/requirements.txt

RUN pip install --upgrade --trusted-host content.dev.faforever.com -r /tmp/requirements.txt

ADD . /code/
WORKDIR /code/

VOLUME /config

# irc3 searches for the plugin files in the folder of the configuration file
CMD cp /config/config.ini ./config.ini && irc3 config.ini
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# FA Forever - IRC bot

[![Build Status](https://travis-ci.org/FAForever/fafbot.svg?branch=master)](https://travis-ci.org/FAForever/fafbot)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/FAForever/fafbot/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/FAForever/fafbot/?branch=master)
[![Build Status](https://travis-ci.org/FAForever/QAI.svg?branch=master)](https://travis-ci.org/FAForever/QAI)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/FAForever/QAI/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/FAForever/QAI/?branch=master)

This is the source code for the [Forged Alliance Forever](http://www.faforever.com/) IRC bot.

Expand Down
11 changes: 4 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
aiohttp
aiomysql
configobj
irc3
pytest
slackclient
websockets
aiohttp==2.0.7
irc3==1.0.0
pytest==3.0.7
slackclient==1.0.5
Empty file added tests/__init__.py
Empty file.
9 changes: 9 additions & 0 deletions tests/test_links.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from links import LINKS, LINKS_SYNONYMES, WIKI_LINKS, WIKI_LINKS_SYNONYMES, OTHER_LINKS


def test_existance():
assert isinstance(LINKS, dict)
assert isinstance(LINKS_SYNONYMES, dict)
assert isinstance(WIKI_LINKS, dict)
assert isinstance(WIKI_LINKS_SYNONYMES, dict)
assert isinstance(OTHER_LINKS, dict)
7 changes: 7 additions & 0 deletions tests/test_taunts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from taunts import TAUNTS, SPAM_PROTECT_TAUNTS, KICK_TAUNTS


def test_existance():
assert isinstance(TAUNTS, list)
assert isinstance(SPAM_PROTECT_TAUNTS, list)
assert isinstance(KICK_TAUNTS, list)

0 comments on commit b412693

Please sign in to comment.