Giter VIP home page Giter VIP logo

botspade's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

botspade's Issues

Write tests for botspade

Getting complex enough that it needs tests. What to test?

bot responds to !points
bot responds to !uptime
bot accepts correctly formatted !bet
bot rejects incorrectly formatted !bet
bot responds to !stats
bot does !update profile
bot does !lookup profile/index
bot does !checkin if more than 12 hours have passed
bot rejects !checkin if fewer than 12 hours have passed
etc,

so:
if bot receives !points
db retrieves user, points displayed

if bot receives !bet 15 win
bot IDs user and
bot records 15 point bet

etc

Create a web page for checking !points

Basic PHP web page that connects to the db (need to input file path) and either a) lists points holders in order or b) provides a search box to fetch points, or c) provides a list with a filter search box.

Allow users to "own" items

Add "inventory" to user db; field with item IDs. Add Item table to db with prices, etc. Allow for "ownable" or not. e.g.

Items

  • ID
  • Description
  • Price
  • Ownable

Rewrite listen as a catch-all, and loop commands

This requires moving all existing built-in commands to helper methods, and creating the db table for user-generated commands, then building a catch-all listen loop and a processing helper method.

Show vote percentages

  • eg 73% win, 20% loss, etc
  • also allow bet options to change?
  • combine bet acknowledgement a if multiples bet before message sent

Create initialization db flag

Add a field in the "options" table (TBB) for "initialized" - if 0, run a method that pre-populates the db with required things, commands, items, etc.

SyntaxError

SyntaxError: botspade.rb:538: invalid multibyte char (US-ASCII)

Database read failure

DB will not recognize manually entered points data for users; forced reset of points. Database appeared to recognize checkins, though. It looked like the username was not recognized in the db.

Song requests & playlists

Sort of a pie in the sky, future type thing... not sure how best to implement. Maybe find a music streaming service w/ an API and connect the streamer's account (like Rdio or Spotify or Grooveshark). Playlist might end up being part of the index.php file or a different, new php file.

How to architect the web interface so that it's not complicated to set up/install?

Overwatch feedback

Allow people to type !cheats or !clean and tallies the total votes? Or better: people type: !aimbot, !wallhack, !grief, or !clean, then it totals all types of cheat votes (wallhack: 10, aimbot: 10, grief: 5 - total cheats: 25, total clean: 20), or similar. !overwatch to start/explain.

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.