[![CircleCI](https://circleci.com/gh/dashwav/nano-chan/tree/master.svg?style=svg)](https://circleci.com/gh/dashwav/nano-chan/tree/master)
# nano-chan
(Not so) General purpose discord bot written in python for the discord.py rewrite library

I try to code this in a style that will continually surprise me no matter how often I look at the codebase

Requirements:
```
Docker (CE edition is fine)
```

Steps to run:

* Clone repo (duh)
* Copy config/example_config.yml to config/config.yml and edit values as needed.
* Run `docker-compose up`
* Invite bot to server.

Once you have changed some code:

* Run `docker-compose build yinbot`
* Re-run `docker-compose up`

## Common Issues:

[![CircleCI](https://circleci.com/gh/dashwav/nano-chan/tree/master.svg?style=svg)](https://circleci.com/gh/dashwav/nano-chan/tree/master)
# nano-chan
(Not so) General purpose discord bot written in python for the discord.py rewrite library

I try to code this in a style that will continually surprise me no matter how often I look at the codebase

Requirements:

```
python > 3.6
Postgresql
```
1) Set up DB
```
sudo -u postgres psql
CREATE DATABASE nanochan;
CREATE USER nanochan WITH PASSWORD '';
GRANT ALL PRIVILEGES ON DATABASE nanochan TO nanochan;
```
2) Install dependencies
```
pip install -r requirements.txt
```
3) Set up config.yml in ./config/config.yml with token and db creds

4) run with `python3 run.py`


DOCKER (WIP)
```
Docker (CE edition is fine)
```

Steps to run:

* Clone repo (duh)
* Copy config/example_config.yml to config/config.yml and edit values as needed.
* Run `docker-compose up`
* Invite bot to server.

Once you have changed some code:

* Run `docker-compose build yinbot`
* Re-run `docker-compose up`

## Common Issues:

Revert "Revert "Updating in case anyone actually wants to help with this""
Revert "Revert "Updating in case anyone actually wants to help with this""

This reverts commit 81ea283c5321c2e428b8690445e2a4da68f17d6b.
