Giter Site home page Giter Site logo

n-word-counter-bot's Introduction

The N-word Counter Bot

Python application

User said the n-word? CAUGHT IN 4K ๐Ÿคจ๐Ÿ“ธ

Invite Link

Here!

Commands

All commands have now been replaced with slash commands! Type / to see all the commands.

Features

  • catches any mention of the n-word with a reply
  • view individual user n-word count
  • view server n-word rankings
  • view global n-word rankings
  • "verify" yourself through votes
  • (coming soon?!) give n-word passes

Do you want to run this on your machine?

Prerequisites:

  • Python 3.10 installed or above
  • Create a discord bot application and fetch the app's token url
  • on the discord bot developer portal, enable SERVER MEMBERS INTENT and MESSAGE CONTENT INTENT
  • Create a MongoDB account and initialize a database cluster, then retrieve its connection string

Steps

  1. Clone this repository to a place on to your computer
  2. Go in the root directory with cd <this repository's name>
  3. Install the required libraries with pip install -r requirements.txt
  4. Head into config.json and add in your DISCORD_TOKEN and MONGO_URL strings respectively, within the double quotes
  5. cd bot to go inside the bot folder
  6. Run the app with python bot.py if on Linux or py bot.py if on Windows

Contact

Reach me on my discord server for any feedback, contributions, or issues.

Other Info

STATUS: Finished but continuously maintained

Utilizes Discord.py and MongoDB technology. Hosted on Fly.io.

Why are you black?

n-word-counter-bot's People

Contributors

bemz01 avatar vaiterius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

n-word-counter-bot's Issues

Not an issue but a question

Q1. Can you use this on replit?
Q2. Since its open source, anyone can clone right?
Q3. If you can use this on replit. Kinda lost but how ._. (wanted to edit the text of the responses of the bot)

Scaling issues due to overloading

This bot ain't viable. The hosting platform and database are under constant load from all the spam. I don't plan on paying for horizontal and vertical scaling so eventually, this bot might go under.

Any tips on how to keep it alive for longer?

SelfHosting Error : Bot Is Not Sending Any Message When Saying N Word

/===StartErrorLog==\

Traceback (most recent call last):
File "/home//.local/lib/python3.10/site-packages/discord/client.py", line 378, in _run_event
await coro(*args, **kwargs)
File "/home//DiscordSystem-Bots/N-Word_Counter-System/bot/cogs/nword_counter.py", line 175, in on_message
if has_message_perms and guild_settings["send_message"]["value"]:
KeyError: 'send_message'

/===EndErrorLog==\

Including This Here Since It Might Help If Something Is Different From Yall Side To Mine

INFO:discord:Using Discord.py version 2.4.1
INFO:discord:Using Python version 3.10.6
INFO:discord:Running on Linux 5.15.0-76-generic (posix)

==How To Replicate==

Just Say The N Word And The Bot Would Not Respond To The User Saying The N Word, Either Only Happens To Me Since Original Bot Is Mentioning Me When I Say The N Word

This Error Is Happening When Mentioning The N Word Every Time, I Noticed It Only Happens To Me Since Am Self Hosting It But Its A Unmodified (Just Git Cloned it), And Hosting It On My Home Linux Server (Self Hosting It Since Me And My Friends Just Spams It), Hopefully get a response from here.

Bot reached maximum servers, Discord link in readme is invalid

Noticed that the bot has reached its maximum server as a non-verified bot, so I tried joining your Discord server to ask if the bot could be kicked from some inactive server so we could get it in ours. Alternatively if this isn't possible, I could probably host one myself

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.