Giter Site home page Giter Site logo

manageinvites's Introduction

ManageInvites

A Discord bot capable of tracking invites and awarding roles if members invite a certain amount of people. This bot was created in version 1.7.3 of the discord.py api. However, discord.py is no longer being developed. This project will be continued, and most likely moved to a well maintained fork, like nextcord.

Invite the Bot

You can invite ManageInvites here.

Enjoy Free Hosting?

If you enjoy using my bot in your server, please consider donating. Even the smallest amount ensures I can keep these bots free and online.

Command List

Command Arguments Description Public?
invites [member] Show your total invites yes
leaderboard [page] Display a server invite leaderboard yes
edit <invites|leaves> <amount> [member] Edit a members invites or leaves no
addirole <invites> <role> Add a new invite role reward no
delirole <role> Delete a invite role reward no
iroles none Display all invite role rewards yes
fetch none Grab all previous invites (use on join) no
invite none Display all your invite links yes

manageinvites's People

Contributors

zennara avatar

Stargazers

Brucho avatar  avatar GODLIKE5 avatar Guijin Ding avatar Haxurus avatar Dhanush R avatar

manageinvites's Issues

Code Quality

I went through your code, I'm amazed you were able to accomplish all this with your archaic style of coding, really, good job!

But this issue is to hint at some better ways to do things, for example, use discord.ext.commands and discord.ext.commands.bot instead of Client, this allows you to utilise checks and more, also, instead of using the replit database, try using sqlitedict, I suggest you go through the discord.py docs and rewrite the code.

You're really smart, and I'm fully confident you can achieve much more, but the old implementations you use severely limit your capacity with this bot, if you're interested, we can rewrite this together :)

Discord: TheOnlyWayUp#1231

what is the prefix?

I saw in the code the preifx is "+prefix+" but when I do +prefix+help or +prefix+iroles it doesn't do anything
There are no errors in the console

getting errors

getting these errors when runnin
i/help and i/iroles

Ignoring exception in on_message Traceback (most recent call last): File "/home/runner/ManageInvites/venv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event await coro(*args, **kwargs) File "main.py", line 192, in on_message prefix = db[str(message.guild.id)]["prefix"] File "/home/runner/ManageInvites/venv/lib/python3.8/site-packages/replit/database/database.py", line 439, in __getitem__ raw_val = self.get_raw(key) File "/home/runner/ManageInvites/venv/lib/python3.8/site-packages/replit/database/database.py", line 479, in get_raw raise KeyError(key) KeyError: '979790913096253511' Ignoring exception in on_message Traceback (most recent call last): File "/home/runner/ManageInvites/venv/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event await coro(*args, **kwargs) File "main.py", line 192, in on_message prefix = db[str(message.guild.id)]["prefix"] File "/home/runner/ManageInvites/venv/lib/python3.8/site-packages/replit/database/database.py", line 439, in __getitem__ raw_val = self.get_raw(key) File "/home/runner/ManageInvites/venv/lib/python3.8/site-packages/replit/database/database.py", line 479, in get_raw raise KeyError(key) KeyError: '979790913096253511'

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.