JoeysCodingProjects / BorisGangBot_Mk2

A Discord bot with music and twitch functionalities. Written in C# with Discord.Net and TwitchLib
MIT License
3 stars 0 forks source link
bot c-sharp discord-net discordbot live-notifications twitch twitch-api twitchlib

CodeFactor

DISCORD REWORKED A LOT OF THEIR API, MOST OF THE CODE HERE IS LIKELY NOT FUNCTIONAL. Was wanting to write a new bot from scratch anyways :^)

BorisGangBot_Mk2

Written in C# using Discord.Net and TwitchLib

What is this?

BorisGangBot is a project of mine to create my own fully fleshed out bot for my friends and I's discord server.

What are it's functions?

The bot is (or is going to be) capable of:

Update : 6-16-2020

Bot is in a somewhat stable state. I believe I've fixed most of the bugs inside Live Stream Monitor such as duplicate alerts, failing to find streamers, not updating the streamers list, etc. Short term testing shows no issues so far, have currently testing long term. The code through out the program is still pretty inefficient and hard to read, but I'll be rewriting a majority of the code once I get music playing functionality up and running.

Notes on setting up the bot:

I've just pushed an update to make the bot very easy to just clone the repository and run, but you must follow this step first. You'll need to create a _config.yml file in the base directory (where StartUp.cs is) containing the following:

prefix: ;
tokens:
    tw_cID: YourTwitchClientIdHere
    tw_token: YourTwitchTokenHere
    discord: YourDiscordBotTokenHere
    discord_testing: YourDebuggingDiscordBotTokenHere

botActivity:
    activity: listening/playing/watching/streaming
    description: ;h for help

liveStreamMono:
    updIntervalSeconds: 30
    notifChannelName: stream-updates

Feel free to use any of the code you see!

It may be ugly code, but I'm sure it can offer plenty of assitance to anyone who may run into some awkward problems. If you would like me to clarify on a block of code, how I did something, or what something does, please don't hesitate to create an issue flagged as a question or even one asking that I return to a block of code and add comments explaining what's going on. I'm happy to assist. This is a learning experience for me and I'd be glad to share what I learn with others along the way.

Anyways, hope someone finds this useful. Took a lot of time to learn all this but should anyone stumble upon this code looking for help in writing a discord bot in C#, it should come in handy a decent bit. Enjoy!