A simple Twitch.tv Chatbot

in #utopian-io8 years ago (edited)

I have been working on a Twitch chat bot that is now released on GitHub.

It uses node-js, Twitch's OAuth system and tmi bot library.

It basically serves as a chatbot for Twitch.tv livestreams, you can customize the bot to your liking to do certain tasks, these are listed below. It can do a lot of stuff. It is in general heavily customizable so you can add custom features to that as well.

Had a hard time trying to code update.js at first, I was developing on GitHub and the bot was on a remote server, managed to pull it off thanks to fortune, a node package. You can use that to run update.js and it will constantly check the .git file of your folder and use git pull command every X minutes (you can set it on the file) and it will restart your bot.js IF there is an update on the GitHub. Will pull the latest commit, whether or not it is a big change.

Make sure you have all the node packages installed at first. You can rely on documentation included in GitHub to pick the correct version for you.

Note: The bot currently offers only several codes that are heavily customizable. Default codes may increase over time with newer versions of the bot. Bot has no license on GitHub and you are free to modify, edit, commercially use and sell if you want. If you need help with anything, feel free to contact me or have a look at the documentation.

  • Reply back to users when they issue a certain command.
  • Mod/Unmod players
  • Have custom commands that do things that you want when used.
  • Moderate your channel.
  • Host/unhost a channel
    and many more!

Possible in the new version:

  • I need a new way to handle channel owner's settings, maybe make it a one time setting that should replicate throughout the script. That is my priority number one, after that I want to simplicize the code a bit.
  • Maybe have some several extra commands in the meanwhile.
  • Maybe alert when a new subscriber/cheer?

All information on how to use and documentation regarding how to add new features is available on GitHub.

https://github.com/xDeathwing/twitchbot
https://github.com/xDeathwing/twitchbot/commit/713b2bfcbbed5df39284d0148652e0f872a33a6d



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved yet. The features you mention are actually not built yet. Please make this clear and describe what you have done so far and how you plan to improve the bot.

Furthermore there's an issue with your project code. The node_modules directory should never be committed to the repository. Instead you need to define your dependencies and other install instructions for npm, in a package.json file.

You may edit your post here, as shown below:

You can contact us on Discord.
[utopian-moderator]

This post has received a 0.20 % upvote from @drotto thanks to: @banjo.

Çok güzel yazı ellerine sağlık üstad

Thank you for implementing all the requested changes. Your contribution has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @deathwing I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.078
BTC 61890.78
ETH 1628.33
USDT 1.00
SBD 0.40