/Mini-Bot

Discord bot for my friend's server

Primary LanguageJavaScript

Mini Bot (Work-In-Progress)

Discord bot for my friend's server.
Made with Node.js.

Update April 21, 2019

  • Refractored code. Connect 4 now supports multiple games and servers. Will re-add previous commands from v1.0.0 in the future.

Update April 22, 2019

Update May 4, 2019

  • Audio commands added: play, queue, repeat, skip, and stop
  • config.js.example
    • Renamed music server to audio.
    • Replaced [] parameters with <>.
    • Added support for audio commands.

Update May 5, 2019

  • New search command
    • Usage: !!search <video title>
    • Use it to search for YouTube videos
    • Uses axios and cheerio.
  • config.js.example
    • Added search command

Update May 12, 2019

  • Modified search command
    • Primary method uses youtube-search, which requires a Youtube v3 API key. This is much faster than the previous method, which is now the secondary method. If a key is not provided, then it will utilize the secondary method.
  • config.js.example
    • Added an api_keys object to the config which can be used to store API keys such as a Youtube v3 API key.

Update May 15, 2019

  • Added Tic Tac Toe game
    • !!ttt help for a list of commands
    • The code functions similar to Connect 4
  • config.js.example
    • Added ttt command
  • connect4.js
    • Fixed issue where the bot would crash when a game would end due to using an undefined variable

Update May 17, 2019

  • Added remove command
    • Usage: !!remove <audio number> (0 for the current audio)
    • Removes the specified audio from the queue
  • connect4.js
    • Fixed issue where the game would be removed from the server after the first move
    • Refactored in getGame(msg) method
  • tictactoe.js
    • Refactored some variables
  • ttt.js changed to t.js
    • Refacted
  • config.js.example
    • Added remove command
    • Adjusted change from ttt to t

Update May 22, 2019

  • Chat logs are now also recorded in .log files
    • Added the folder, chatlogs
    • Now support logging edited messages
  • index.js
    • Added event for edited messages
    • Created a WriteStream
  • main.js
    • Added support for the WriteStream and edited messages
  • .gitignore
    • Ignored .log files in the folder, chatlogs.