From 97b178dbf8e60698e33055deb1eb9f7a60bce9e4 Mon Sep 17 00:00:00 2001 From: NinjaCheetah <58050615+NinjaCheetah@users.noreply.github.com> Date: Sun, 19 Jun 2022 22:34:22 -0400 Subject: [PATCH] Moved Ah Counter from NCX Programming site --- _data/projects-maintained.yml | 4 +++ projects/maintained/ahcounter.html | 48 ++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 projects/maintained/ahcounter.html diff --git a/_data/projects-maintained.yml b/_data/projects-maintained.yml index 56f3610..d3b7e89 100644 --- a/_data/projects-maintained.yml +++ b/_data/projects-maintained.yml @@ -1,3 +1,7 @@ +- name: ahcounter + truename: Ah Counter + icon: https://cdn.ncxprogramming.com/file/icon/ahcounter.png + desc: A Discord bot that counts words. - name: fakeapt truename: fake-apt icon: https://cdn.ncxprogramming.com/file/icon/placeholder.svg diff --git a/projects/maintained/ahcounter.html b/projects/maintained/ahcounter.html new file mode 100644 index 0000000..b840129 --- /dev/null +++ b/projects/maintained/ahcounter.html @@ -0,0 +1,48 @@ +--- +title: Ah Counter +layout: program +custicon: true +iconurl: https://cdn.ncxprogramming.com/file/icon/ahcounter.png +platform: Discord +links: + - name: View Source + link: https://github.com/NinjaCheetah/AhCounter +--- + +
You will need a modern OS with a stable internet connection.
+Python: Version 3.9/3.10 (Newer versions also will likely work)
+Python Modules: See requirements.txt
+
Since Ah Counter is a standard Python Discord bot, it can be run with simply python3 bot.py
.
You must configure the bot before trying to run it, as detailed here.
+The bot will automatically create and configure the database that it needs to store counted words and server settings.
+Ah Counter is a Discord bot made to count words said in Discord servers. Originally made for the Nintendo 3DS Homebrew group Universal-Team's Discord server but was later open sourced and modified so that it could be configured and used by anyone.
+By default, Ah Counter only watches for the word "Ah", but can somewhat easily be configured to count other words. Documentation on that can be found here.
+The original version of Ah Counter relied on a JSON file to save word counts and was designed to only work with one server and had to be configured with files. The bot was later reworked to use an SQLite database for the word counts and server settings. One table is made for the word counts and keeps a record of the count, word, regex and server ID for every entry, and another table is made for server settings that can be configured by bot managers (which are set in config.json
) or server mods.
Another feature that was added later was the ability to create a list of banned words, so that people using your instance of the bot can't count those words in their server.