Inspiration

We wanted to create a discord bot that could do various things. Looking at the theme of the hackathon, we decided that making a bot that encrypts and decrypts would be cool and still fit the theme.

What it does

The bot works based on different commands that are input. The "/help" input prints all of the available commands, what they do, and how to format an input to work correctly. The "/cencrypt " command will encrypt the bot in Caesar Shift Cypher based on the the letter that the person puts after the command. For instance, "/cencrypt c Howdy" will encrypt Howdy with a c shift Caesar Cypher. If the c was a different letter it would do that as the shift. The "/cdecrypt " command will decrypt a message based on the letter input after command, exactly like the "/cencrypt " command. For instance, "/cdecrypt c Jqyfa" will decrypt Jqyfa to Howdy using a c shift. The last command is the "/mencrypt " command that encrypts something using Morse Code. For instance, "/mencrypt Howdy" will yield ••••---•---••-•--. The bot needs to run forever, so a raspberry pi 3 was setup as a mini desktop. The bot's code runs on the raspberry pi 3 so that it can work.

How we built it

Preston and Joshua worked on the project throughout the day. We used an online resource called repl.it to code together as we worked. We coded the bot throughout the day, using online resources to help with how to setup the bot and make sure our commands worked. We also checked the bot using a test discord server as we worked, so that we could develop it slowly, making sure each part worked. Later, after we had the code working, we set up the raspberry pi 3 so that the code could run on it.

Challenges we ran into

Probably the largest challenge that we getting the logistics of the code working and making sure that the code actually encrypted correctly. We also ran into the issue of it not running when we closed the collaborative website. This is why the raspberry pi 3 was used.

Accomplishments that we're proud of

Honestly, this was our first hackathon so we did not know what to expect or how it all worked. We are extremely excited that we were able to get a project up and running within the timeframe.

What we learned

We learned how to incorporate different files and commands into a file so that it would work with discord. We also learned how to manipulate and incorporate complex ideas into code, making sure that it works for all examples.

What's next for SenateBot - an encryption Discord bot

We may update the bot later if we find something that could help it run better or if we find something that will add to it. For now though, we are going to post it online so that others can download it if they want to.

Built With

Share this project:

Updates