# Tougou Bot

An (in progress) bot for discord. The old version of this had all the features that are still marked as todo so use an old release if you want those still.

## TODO:
 - commands to interface with the jihso.org website
 - commands to store and retrieve phrases
 - commands to interface with the vndb.org website
 - commands to interface with some anime database (mal api still down?)
 - commands to interface with wikipedia (was this feature used?)
 - unit/feature tests (need to stub out external APIs somehow)

## How to build it: 
`cargo build [--release]`

## How to test it:
Linting: `cargo fmt && cargo clippy`  
Unit: `cargo test`  
More detailed automated tests still to come.

## How to run it:
Make sure the environment variable `DISCORD_TOKEN` is set to your discord application's bot token.  
Compile using `cargo build --release` and then run the output executable.

## Commands:  
### !ping:  
Tougou replies saying "Pong!"

### !pic: 
(warning: likely to be NSFW)  
This command fetches a random image from the danbooru site.   
Usage: `!pic [tag(s)]`. Tags are optional and space separated. Note: The Danbooru API caps the number of tags that can constrain a query to 2.

# Tougou Bot

An (in progress) bot for discord. The old version of this had all the features that are still marked as todo so use an old release if you want those still.

## TODO:
 - commands to interface with the jihso.org website
 - commands to store and retrieve phrases
 - commands to interface with the vndb.org website
 - commands to interface with some anime database (mal api still down?)
 - commands to interface with wikipedia (was this feature used?)
 - unit/feature tests (need to stub out external APIs somehow)

## How to build it: 
[Make sure rustc & cargo are installed](https://www.rust-lang.org/learn/get-started)  
`cargo build [--release]`

## How to test it:
Linting: `cargo fmt && cargo clippy`  
Unit: `cargo test`  
More detailed automated tests still to come.

## How to run it:
Make sure the environment variable `DISCORD_TOKEN` is set to your discord application's bot token.  
Compile using `cargo build --release` and then run the output executable.

## Commands:  
### !ping:  
Tougou replies saying "Pong!"

### !pic: 
(warning: likely to be NSFW)  
This command fetches a random image from the danbooru site.   
Usage: `!pic [tag(s)]`. Tags are optional and space separated. Note: The Danbooru API caps the number of tags that can constrain a query to 2.

Update readme with rust dependancies
Update readme with rust dependancies
