Giter Site home page Giter Site logo

statbot's Introduction

StatBot []

A Discord Bot which logs in the HydraIRC complient log format so that mIRCStats will work. Slightly modified parser can be found in the mIRCStats parser folder.

Download: GitHub release

Setup

Compile (or download) and place in a location you want the software in. Configure the application through the appsettings.json file. More information can be found here about the token: https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token

Important: when logged into the portal, go to "Bot" in the left menu and enable "Message Content Intent". In my short test, I had to restart the bot, but that might not be needed. I understand that it was announced a year ago, but I also wasn't aware of it.

You can either let the bot log to channelname.log or channelid.log. You can figure out what channel belongs to a channelid by opening the log and checking the first line, or by writing #channelname in Discord. It will show something like <#296923759988703232> where 296923759988703232 is the id.

If you use StatBot to generate the stats through GeneratorFile, make sure to run StatBot through your own account or one that has the FTP credentials uploaded if you use FTP. The FTP credentials are encrypted in mIRCStats, so other accounts will not be able to upload.

Tips

If a channel is renamed and the bot is set to log to channelname.log, you can use a script to move the old and new log files into a folder. If you specify the channel name in the first log (for this example, 1.log) through the following line:

"*** Now talking in #channelname"

mIRCStats will recognize that name.

Example batch script for combining multiple logs:

  • mkdir C:\Discord\StatBot\277418737798479872\general
  • copy "C:\Discord\StatBot\277418737798479872\general.log" "C:\Discord\StatBot\277418737798479872\general\1.log" /Y
  • copy "C:\Discord\StatBot\277418737798479872\the-toy-factory.log" "C:\Discord\StatBot\277418737798479872\general\2.log" /Y
  • START /WAIT C:\Discord\StatBot\mircstats\mircstats.exe -cfg general.cfg -log "C:\Discord\StatBot\277418737798479872\general\*.log" -html Html\general.html

Notes

Want to help or need help? Join the discord server https://discord.gg/SFYVQNE , create an issue or create a pull request.

You can also donate at https://www.paypal.me/mjheijster.

Font used for the icon: Archicoco

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.