<commit_before># benbot

[Add benbot to your server](https://discordapp.com/api/oauth2/authorize?client_id=288416337057939456&scope=bot&permissions=0)

This is a Discord bot I've been working on. Under heavy development. It's my senior project.

Feel free to clone this project and try your hand at making a bot. 

## Set up

1. `git clone https://git.benharris.ch/ben/benbot && cd benbot`
1. Install DiscordPHP and dependencies: `composer install`
1. Get your Discord API Key and save it in `.env` (copy or rename `.env.example` and paste your keys in)
2. --optional save your API keys in `.env` for openweathermap.org, cleverbot.com, and a phone number for the text command
1. Run the bot `./bot start`

>If you want to keep the bot running in the background, run it as `./bot nohup`

>If bash isn't available, you can run the bot with just `php run.php` (and `nohup php run.php &` to run in the background)


## Commands

```
    //////                        //////                //
   //    //    ////    //////    //    //    ////    ////////<commit_msg>update README again<commit_after># benbot

[Add benbot to your server](https://discordapp.com/api/oauth2/authorize?client_id=288416337057939456&scope=bot&permissions=0)

This is a Discord bot I've been working on. Under heavy development. It's my senior project.

Feel free to clone this project and try your hand at making a bot. 

## Set up

> Requires PHP 7.0 or later (7.1.4 is preferred. it includes an important fix for SSL and sending files larger than 100kb)

1. `git clone https://git.benharris.ch/srproj/benbot && cd benbot`
1. Install DiscordPHP and dependencies: `composer install`
1. Get your Discord API Key and save it in `.env` (copy or rename `.env.example` and paste your keys in)
1. --optional save your API keys in `.env` for openweathermap.org, cleverbot.com, and a phone number for the text command
1. Run the bot `./bot start`

> If you want to keep your bot running in the background, run it as `./bot nohup`.
> If bash isn't available, you can run the bot with just `php run.php` (and `nohup php run.php &` to run in the background)


## Commands

```
    //////                        //////                //
   //    //    ////    //////    //    //    ////    ////////
{'fraction_non_alphanumeric': 0.12488928255093003, 'fraction_numerical': 0.025686448184233834, 'mean_word_length': 2.496904024767802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3154078', 'n_tokens_mistral': 752, 'n_tokens_neox': 690, 'n_words': 295}