Coder Social home page Coder Social logo

appleiibot's Introduction

AppleIIBot

The code that runs the Apple II Twitter bot at https://twitter.com/AppleIIBot

I'm sharing this so people can use this as a stepping stone to making their own, different bots.

Documentation for using the bot is at https://appleiibot.com

The main twitter posting code is based on what I learned from "The Reply to Mentions Bot" at https://realpython.com/twitter-bot-python-tweepy/#the-config-module

New version 2 Aug 2021 adds:

  • run Apple Logo II code by using the {L} directive
  • run Terrapin Logo PLUS code by using the {T} directive
  • download and run any arbitrary DSK file from the web by including a URL (and nothing else) in the tweet. This doesn't work super reliably and not really what I want to do with the bot. I'll probably take it out in the future.

Dependencies. So many dependencies:

appleiibot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

appleiibot's Issues

readme.md copy-paste error

Wonderful project Kay. I don't want to sully it with my name from a pull request for something so dinky: The readme says it is an "Atari 8-bit Twitter bot".

Character encoding limitations of Pyton

Somewhere in the execution chain (I suspect when opening a text file) data is being forced to ASCII and otherwise useful characters (upper-ascii, unicode, etc) are discarded. Because of this, it is not possible to post pre-tokenized or other kinds of encoded data and we have a pretty hard limitation of 140 characters to get past this. If this bot is using Python 2, then it is very likely that the default behavior of Python is responsible for this, as it assumes Ascii in a lot of places. If the bot is Python 3, then I don't have a reasonable explanation since I don't see normalize being called explicitly anywhere in the bot or the tokenizer code. At any rate, explicitly specifying UTF-8 as the encoding type when opening text files could be one possible way to solve this limitation. It is possible that the tokenizer would also need to be updated to truncate hi-bytes or do something else clever with them. Also, using unicode symbols could reduce the number of characters needed for commands, e.g. 🟒 for green, 🟠 for amber,
🐒for logo, etc. Of course if raw binary were also possible then maybe βŠ› for assembled data?

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.