Git Product home page Git Product logo

anjannair / rufus-discord-bot Goto Github PK

View Code? Open in Web Editor NEW
70.0 4.0 18.0 3.94 MB

A simple moderation and auto-mod bot for discord. This discord bot which can autopost memes at a frequent interval. Among us muting and un-muting all players in voice along with high definition maps and information for beginners. Summarizes links and gives a TLDR of articles. [NEW] - Can export chats in HTML format

License: GNU General Public License v3.0

JavaScript 98.76% Shell 0.21% HTML 1.03%
discord-bot discord-js bot javascript meme-bot heroku heroku-deployment discord-heroku among-us among-us-discord

rufus-discord-bot's Introduction

Rufus

THIS BRANCH IS MAINTAINED AT A SLOWER PACE AND THE BETTER BRANCH CAN BE FOUND ON THE OTHER BRANCH OF THIS REPOSITORY (COMMANDO VERSION)

Rufus is a dicord bot with the intention of replacing MEE6. The intention is to make bots open sourced and so that more people build bots using Discords extensive API.

The extensive guide to building a Javascript bot can be found here.

This is no way affliated to the company Rufus.

THE COMMANDO VERSION OF THIS CODE IS IN THIS BRANCH

The Pacman inspired logo

Environment Variables

TOKEN = //YOUR DISCORD TOKEN

TENOR = //YOUR TENOR TOKEN

MEMCACHEDCLOUD_PASSWORD = //MEMCACHE CLOUD TOKEN

MEMCACHEDCLOUD_SERVERS = //MEMCACHE SERVER TOKEN

MEMCACHEDCLOUD_USERNAME = //MEMCACHE USERNAME TOKEN

COC = //CLASH OF CLANS API KEY

TLDR = //YOUR SMMRY API

Features

• Automeme feature - Post memes every one hour (time can be changed) from an array of subreddits at random. The API link in the array can be edited to add more subreddits.

• Transcript aka chat exporter - Generate an html transcript of your channel and export the chats in that format (Still in development)

• Manuals - A lot of my friends were new to the enviornment of discord. To easen them up they only had to remember one prefix only and a the bot name they wanted to know about.

• Moderation - Ban, kick, warn, prune messages, mute and unmute all and muting and unmuting a user (same goes for deafening) features are included with appropriate permissions.

• AutoModeration - Remove a list of bad words and dangerous links (nsfw included) along with captcha for new members(bots are ignored) and keep your server clean.

• Games - Currently 8ball and TicTacToe are included.

• QR code generator for links.

• API integrations - Currently ReviewMeta API, Reddit meme API, Urban Dictionary API, Number API, CatFact API, Dogpile API, NASA API, SMMRY API and Tenor API are being used.

• Heroku integration - A free cloud hosting for small bots for few guilds (servers). The bot remains online 24/7.

HOW TO START BUILDING MY BOT?

Click over here

HOW TO HOST MY BOT?

Click here

HOW TO LINK BOT TO DATABASE

Click here

I have tried to make the Wiki page as detailed as possible. I hope you learn something new!

rufus-discord-bot's People

Contributors

achaljhawar avatar anjannair avatar dependabot-preview[bot] avatar dependabot[bot] avatar internetramen avatar miqhtiedev avatar tijsdebelie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rufus-discord-bot's Issues

Better code explanation needed

Explain all necessary variables and it's functions using the comments for better code understanding

Edit: Don't touch the txt files

Remove Line Reader from Index

In the index.js of the project Line 4, you imported the line-reader package. But I've checked through out the file, you did not use that, in any part of the code. So I would suggest that, you remove the import for it in Index.js (I know you required it in other files, so I don't think you should uninstall the whole package)

split

2021-11-25T02:05:50.407584+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=tdsbotcommander.herokuapp.com request_id=9ebc165e-57a4-4d1c-87fd-3b306e1c7171 fwd="108.24.181.240" dyno= connect= service= status=503 bytes= protocol=https
2021-11-25T02:05:50.744691+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=tdsbotcommander.herokuapp.com request_id=52b958ef-5257-4c55-b6cc-3096f75cd363 fwd="108.24.181.240" dyno= connect= service= status=503 bytes= protocol=https
2021-11-25T02:05:58.660835+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=tdsbotcommander.herokuapp.com request_id=e38d8344-760d-46e3-9fdc-8fbcb86d83d7 fwd="108.24.181.240" dyno= connect= service= status=503 bytes= protocol=https
2021-11-25T02:05:58.795266+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=tdsbotcommander.herokuapp.com request_id=f988a9b4-7064-4d52-a86a-265e469c54bc fwd="108.24.181.240" dyno= connect= service= status=503 bytes= protocol=https
2021-11-25T02:06:47.232410+00:00 app[api]: Starting process with command node index.js by user [email protected]
2021-11-25T02:06:52.631603+00:00 heroku[run.8304]: Awaiting client
2021-11-25T02:06:52.670725+00:00 heroku[run.8304]: Starting process with command node index.js
2021-11-25T02:06:52.729155+00:00 heroku[run.8304]: State changed from starting to up
2021-11-25T02:06:56.414679+00:00 heroku[run.8304]: Process exited with status 1
2021-11-25T02:06:56.536741+00:00 heroku[run.8304]: State changed from up to complete

Chat exporter needs to improve

Currently what is missing:

  1. Images and attachments
  2. Message embeds
  3. Reactions and more

What can be improved

  1. Emoji display
  2. Mention and channel display

Here is preview of an attachment followed by an emoji:
preview

PS - Change in any branch is alright as the code is the same

index.js is too large

The index.js file is very large because of all events being included in that. A separate file for events should be created.

Commando

Is commando still the active branch? looks like it has not been updated since April but you are actively updating the master branch.

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.