GithubHelp home page GithubHelp logo

cpssd-students / steely Goto Github PK

View Code? Open in Web Editor NEW
21.0 5.0 15.0 795 KB

a python 3.6 facebook/telegram bot

License: GNU General Public License v3.0

Python 99.57% Makefile 0.01% Shell 0.28% Dockerfile 0.14%
facebook-bot python-3-6 python hacktoberfest telegram-bot

steely's People

Contributors

benmcmahon100 avatar byxor avatar cianlr avatar devoxel avatar edwarddowling avatar gruunday avatar hevehan avatar iandioch avatar izaakf avatar null-domain avatar oskarmcd avatar rski avatar sentriz avatar smurphicus avatar xciarag avatar

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  avatar  avatar

steely's Issues

SEP1 - New plugin interface

As detailed by @sentriz before, we want to modify the core interface to allow people to define commands with decorators.

This is moving towards the goal of chaining multiple steely commands, eg .slag | .snoop to get a snoop slag, without intermediate messages.

We should write out a few proposals on how we could do this. Personally I think abstracting fbchat away is the way to go.

Remove escaped HTML stuff from Trademarks

Example:

Name: AT&T BUSINESSDIRECT
SN: 78144811
Date: 02/10/2004
Description: N/A

The name should be AT&T BUSINESSDIRECT

We might also need to encode searches. e.g. .tm AT&T will search for AT&T.

What are those escaped HTML things called? (  & etc)

Refactor .gex

This craic is a mess. Who wrote this? It's all over the place.

requirements.txt is out of date

It says to install limp 0.2, which is incompatible with the current limp plugin.

This line should just be limp.

I'd fix it, but I can't until my other PR is merged.

cage.py not working

Exception in thread Thread-285:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "plugins/cage.py", line 62, in main
    thread_type=thread_type)
TypeError: sendRemoteImage() got an unexpected keyword argument 'message'

🔥
👀
👃
👄

Congrats on reviving steely.

What account is it running on?


Isn't it neat how you can use zero-width characters in the issue names? It makes them unclickable haha.

https://codepen.io/chriscoyier/pen/iLKwm

Fix output of '.define list'

Facebook added strikethrough formatting recently, and the output of this command displays incorrectly.

Example:
image

Consider putting the output in a code block to prevent this.

.party machine broke

⁣⁣Exception in thread Thread-354:
⁣⁣Traceback (most recent call last):
⁣⁣  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
⁣⁣    self.run()
⁣⁣  File "/usr/lib/python3.6/threading.py", line 864, in run
⁣⁣    self._target(*self._args, **self._kwargs)
⁣⁣  File "plugins/parrot.py", line 53, in main
⁣⁣    party(bot, message, image_send, text_send)
⁣⁣  File "plugins/parrot.py", line 41, in party
⁣⁣    image_send(party_url)
⁣⁣  File "plugins/parrot.py", line 49, in <lambda>
⁣⁣    thread_type=thread_type)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 1018, in sendRemoteImage
⁣⁣    image_id = self._uploadImage(image_url, remote_image, mimetype)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 978, in _uploadImage
⁣⁣    }, fix_request=True, as_json=True)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 158, in _postFile
⁣⁣    raise e
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/client.py", line 154, in _postFile
⁣⁣    return check_request(r, as_json=as_json)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/utils.py", line 205, in check_request
⁣⁣    check_json(j)
⁣⁣  File "/home/senan/.virtualenvs/steely/lib/python3.6/site-packages/fbchat/utils.py", line 184, in check_json
⁣⁣    raise FBchatFacebookError('Error #{} when sending request: {}'.format(j['error'], j['errorDescription']), fb_error_code=j['error'], fb_error_message=j['errorDescription'])
⁣⁣fbchat.models.FBchatFacebookError: Error #1545026 when sending request: The type of file you're trying to attach isn't allowed. Please try again with a different format.

I think it might be because the party API URL isn't obviously an image, doesn't end in .png or something.

Fix obscene gex error

⁣⁣Traceback (most recent call last):
⁣⁣  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
⁣⁣    self.run()
⁣⁣  File "/usr/lib/python3.6/threading.py", line 864, in run
⁣⁣    self._target(*self._args, **self._kwargs)
⁣⁣  File "plugins/obscene.py", line 34, in main
⁣⁣    gex.gex_give(bot.uid, CARD_NAME, author_id)
⁣⁣  File "/home/senan/steely/steely/plugins/gex.py", line 79, in gex_give
⁣⁣    gex_util.check_for_card(giving_user, card_id)
⁣⁣  File "/home/senan/steely/steely/plugins/_gex_util.py", line 47, in check_for_card
⁣⁣    raise RuntimeError('User is not in masters of this card.')
⁣⁣RuntimeError: User is not in masters of this card.

I guess Weeura isn't in the owners.

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.