Coder Social home page Coder Social logo

sampathgujarathi / enron Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 4.0 1.23 MB

A Discord Bot that allows you to protect your Discord server with web authorization, anti phishing, account age required, logs...

Home Page: https://discord.gg/unfnMkgaWA

License: GNU Affero General Public License v3.0

Python 49.48% CSS 26.46% JavaScript 1.74% HTML 22.32%
anti-scam-bot discord-bot discord-bot-dashboard discord-bot-python flask py-cord verification-bot anti-phishing-bot

enron's Introduction


Enron Discord Bot

Anti Scam, Verification, Moderation

Support Server release py-cord

AboutInstallationSupport

Installation

Install all dependencies:

  • pip install -r requirements.txt
  • Then put your bot details like token, id, secret, owner_id, log_channel_id.... in (example_config.py)
  • Rename example_config.py to config.py
  • This bot have to use the "SERVER MEMBERS INTENT" & "PRESENCE INTENT" & "MESSAGE CONTENT INTENT", so you have to enable it in the Discord's developers portal

Finally, host the bot and invite it to your own server.

Discord

Join the Discord server !

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is under AGPL-3.0.

enron's People

Contributors

sampathgujarathi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

enron's Issues

Throwing error when tried toverify

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 124, in wrapped
    ret = await coro(arg)
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 974, in _invoke
    await self.callback(ctx, **kwargs)
  File "/root/discordstuff/Enron/main.py", line 57, in setup
    await verify(bot,ctx,verification_channel,role)
  File "/root/discordstuff/Enron/cogs/utility.py", line 319, in verify
    embed.set_thumbnail(url=ctx.guild.icon.url)
AttributeError: 'NoneType' object has no attribute 'url'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/discord/client.py", line 377, in _run_event
    await coro(*args, **kwargs)
  File "/root/discordstuff/Enron/main.py", line 218, in on_application_command_error
    raise error
  File "/usr/local/lib/python3.10/dist-packages/discord/bot.py", line 1088, in invoke_application_command
    await ctx.command.invoke(ctx)
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 374, in invoke
    await injected(ctx)
  File "/usr/local/lib/python3.10/dist-packages/discord/commands/core.py", line 132, in wrapped
    raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: AttributeError: 'NoneType' object has no attribute 'url'```

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.