mirror of
https://github.com/rvtr/ninjacheetah.github.io.git
synced 2025-06-18 11:05:37 -04:00
Moved Ah Counter from NCX Programming site
This commit is contained in:
parent
ddfd3afef9
commit
97b178dbf8
@ -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
|
||||
|
48
projects/maintained/ahcounter.html
Normal file
48
projects/maintained/ahcounter.html
Normal file
@ -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
|
||||
---
|
||||
|
||||
<div class="container">
|
||||
<div class="accordion pb-3" id="accordionExample">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header" id="headingOne">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
|
||||
Requirements
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapseOne" class="accordion-collapse collapse" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
<p>You will need a modern OS with a stable internet connection.</p>
|
||||
<p><b>Python: </b> Version 3.9/3.10 (Newer versions also will likely work)</p>
|
||||
<p><b>Python Modules: </b>See <a href="https://github.com/NinjaCheetah/AhCounter/blob/main/requirements.txt">requirements.txt</a><p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header" id="headingTwo">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
||||
Usage
|
||||
</button>
|
||||
</h2>
|
||||
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#accordionExample">
|
||||
<div class="accordion-body">
|
||||
<p>Since Ah Counter is a standard Python Discord bot, it can be run with simply <code>python3 bot.py</code>.</p>
|
||||
<p>You must configure the bot before trying to run it, as detailed <a href="https://github.com/NinjaCheetah/AhCounter/wiki/Configuring-the-Bot-(With-the-config-file)">here</a>.</p>
|
||||
<p>The bot will automatically create and configure the database that it needs to store counted words and server settings.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3>About</h3>
|
||||
<p>Ah Counter is a Discord bot made to count words said in Discord servers. Originally made for the Nintendo 3DS Homebrew group <a href="https://universal-team.net">Universal-Team</a>'s Discord server but was later open sourced and modified so that it could be configured and used by anyone.</p>
|
||||
<p>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 <a href="https://github.com/NinjaCheetah/AhCounter/wiki/Configuring-the-Bot">here</a>.</p>
|
||||
<p>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 <code>config.json</code>) or server mods.</p>
|
||||
<p>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.</p>
|
Loading…
Reference in New Issue
Block a user