Coder Social home page Coder Social logo

pokemon-hangouts-bot-plugins's Introduction

Pokemon Plugins for Hangoutsbot

A set of plugins for hangoutsbot/hangoutsbot.

Well, actually, just one, at the moment.

pokemon.py:

  • /bot pokedex : Uses the pokeapi.co API to get basic data on a specific Pokemon and gets images from Pokebase
  • /bot clearpokedex: Clears the Pokedex cache from memory. (Admin only)
  • /bot pokemon nature : Get basic data on a specified Pokemon nature as per Bulbapedia

Configuration

`pokedex`:{
  'info':[
    'types',
    'ability
    ]
  }

pokemon-hangouts-bot-plugins's People

Contributors

jimsug avatar neon-ninja avatar

Stargazers

Marcel avatar  avatar

Watchers

Cade Roux avatar James Cloos avatar Marcel avatar  avatar  avatar

pokemon-hangouts-bot-plugins's Issues

frequently getting 2 erorrs

Frequently get the following 2 errors. Sometimes they clear with restart of bot sometimes they dont.
I have recently replaced the old pokemon.py with the new one that has the pokemon nature command and this also doesnt work.
Anyone have any ideas?

ValueError: Expecting value: line 1 column 1 (char 0)

UnboundLocalError: local variable 'matchups' referenced before assignment

Localisation project

As per #1 (comment), I'm comfortable with the plugin making several hundred API calls if:

  1. They're staggered if required - they can be deferred or backed-off until such time as the servers can handle it.
  2. The plugin backs off exponentially, with some ceiling.
  3. The translated names are cached very heavily along with any other data that we can cached - in the order of months or a year or so.

To-do list for pokemon.py

  • Indicate in some way whether the data used was fresh or cached
  • Find some way to present type match-ups in a neat, concise manner
  • Handle 5XX responses differently to 4XX responses
  • Maybe some other options for data - blurb, sprite, etc. There's a lot of data available, may as well exploit it
  • Change the type display to just type1/type2

cache error

When loading from cache it says:
pokedex UnboundLocalError: local variable 'matchups' referenced before assignment

Request for Data

Hi I use this plugin in an Pokemon Go chat and it works very great ๐Ÿ‘ but some the following Data's would be really nice to have: (i have linked them in the docs)

I think personaly that both can just go with the pokedex command

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.