Coder Social home page Coder Social logo

spectrixdev / spectrum Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 11.0 209 KB

A Discord bot with tons of features, written in Python, made for fun.

License: GNU General Public License v3.0

Python 100.00%
discord-bot python spectrum rewrite bot discord subreddit hacktoberfest spectrix

spectrum's Introduction

Spectrum

Spectrum is a Discord Bot made with Python for fun.

discord.py python 3.6+ rlly GitHub stars GitHub repo size

1,300+ servers

Originally my first coding project, Spectrum is a bot that does a wide variety of fun commands. Over the years I have added many features useful for myself, but at the end of the day it is just a fun project.

Usage ๐Ÿ’ก

To use Spectrum, you can either mention it, or you can simply use it's prefix, which is $

Fun

Fun to use commands made for fun ยฏ\_(ใƒ„)_/ยฏ

Name Description
roast Let Spectrum insult someone or yourself
ship {@user1} {@user2} Test love between two users
gay-scanner {@user} See how gAeY another user is. Shows my level of maturity too
combine {word1} {word2} Makes two words one. For sentances: $combine "a sentance" "cuz y not"
8ball Generic. But mine looks better

Subreddits (Reddit)

Posts stuff from subreddits to your discord chat

Name Description
meme Collects fresh memes from different subreddits
dankmemes The finest memes on Reddit
showerthought Random and interesting thoughts
me_irl Fresh memes from only the best subreddit
hmmm Cursed images thank make you say "hmmm..!?"
programmerhumor Humor for programmers
surrealmemes S u r r e a l (not for mortals)

Utility

Useful commands I guess

Name Description
qr {input} Makes a QR code for you
bigemote {emote} Converts emoji to png so you can save it
poll {input} Makes a simple poll so you can vote either yes or no

Text Conversion

Mess around with text, encode or decode stuff and more

Name Description
drunkify {input} RaNdoMizes youR InPUT's cApS AND LoWErCAsE
expand {ammount (1-5) {input} Adds spaces between l e t t e r s
reverse {input} Reverses text
texttohex {input} Encodes plaintext to hexidecimal (eg: 6f 77 6f)
hextotext {input} Decodes hexidecimal to plaintext
texttobinary {input} Encodes plaintext to binary
binarytotext {input} Decodes binary to plaintext

Info

Get information about stuff

Name Description Usage
user Get information about a user info user @someone
server Get information about the current server info server
bot Shows a bit of infomation for Spectrum info bot

Game Info

Shows what the most popular games are in the server and who's playing them

Name Description
currentgames Shows the most popular games in order from your server
whosplaying {game} Check who's playing a specific game in your server

Load Shedding

For South African's that have to deal with loadshedding

Name Description
loadshedding Gives loadshedding statistics

Moderation

Extra generic just the way you like it. more coming soon maybe probably

Name Description
clear {amount} Purges/deletes an amount of messages from the channel
slowmode {amount} Puts channel in slowmode with the ammount as an interval
kick {user} {reason} Kicks the user obviously
ban {user} {reason} Bans the user obviously
softban {user} {reason} Bans and unbans the user, so their messages are deleted
giverole {user} {role} Gives the user a role
removerole {user} {role} Removes a role from a user

Specrypt

Low effort "text encryption" thing made for fun

Name Description Usage
encrypt (e) Encrypts plaintext to specrypt specrypt e Hello world!
decrypt (d) Decrypts specrypted text into plaintext specrypt d Tqxx{,c{~xp-

Others

Other boring generic commands

Name Description
ping Super smexy ping command. Calculates average ping
invite Sends the link that allows you to add Spectrum to your server
server / support Sends you to Spectrix's super cool server!!!
help Sends your here. You should know that tho

Chatbot

A smart-enough chat bot, made completely by me

Name Description
@Spectrum#4109 {input} Mention the bot to chat to it! The input must not be a command (anything below)

Author & Lisence

๐Ÿ‘ค SpectrixDev

๐Ÿ“œ Using lisence GNU General Public License v3.0

๐Ÿค Contributing

Open a pull req or go to the issues page and I'll have a look lol

Show your support

Gimme a โญ๏ธ or vote for the bot on top.gg

spectrum's People

Contributors

bobdotcom avatar brahmnw avatar dependabot[bot] avatar spectrixdev avatar

Stargazers

 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

spectrum's Issues

add spectrum phone back

Make it where we can use it in dms and a server make sure theres a channel called #server-phone

Discord Bot List API not working right (Unauthorized 401)

It never works and I'm still getting errors now

Failed to post server count Unauthorized: Unauthorized (status code: 401): {"error":"Unauthorized"} Traceback (most recent call last): File "/home/Spectrix/cogs/dblUpdater.py", line 25, in update_stats await self.dblpy.post_server_count() File "/home/Spectrix/.local/lib/python3.6/site-packages/dbl/client.py", line 100, in post_server_count Unauthorized: Unauthorized (status code: 401): {"error":"Unauthorized"} await self.http.post_server_count(self.bot_id, self.guild_count(), shard_count, shard_no) File "/home/Spectrix/.local/lib/python3.6/site-packages/dbl/http.py", line 189, in post_server_count await self.request('POST', '{}/bots/{}/stats'.format(self.BASE, bot_id), json=payload) File "/home/Spectrix/.local/lib/python3.6/site-packages/dbl/http.py", line 158, in request raise Unauthorized(resp, data) dbl.errors.Unauthorized: Unauthorized (status code: 401): {"error":"Unauthorized"}

Basically, it's saying it's unauthorized, and i checked the api on github
Top-gg-Community/python-sdk#5
So apparently it's a bug

Any other ways of posting to the discord bot list api that actually work?

Make an handler.py

i feel like since spectrum is becoming better and stuff, you should make an handler.py for all the bot events so you dont need to restart the bot rather then to reload a cog for updating presences and have your error handler right there too

Bot not printing logs in bot.py

So I have code such as:

print(f"Gave my server invite to {ctx.message.author.name}. Server: {message.server.name}. Time: {datetime.datetime.now().time()}")

after a command, and it doesn't print it out except for the chat bot part (this is in bot.py)

Any thoughts?

Help!

Can I know where to add the token :)?

Js

Self explanatory

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.