Giter Club home page Giter Club logo

pancake's Introduction

pancake

Known for somewhat solving Wordle and Waffle.

Disclaimer

Only Windows and Linux are supported as of now. Windows because I use it, Linux because GitHub Actions uses it (but not my Ubuntu terminal somehow). You can't fight me.

Usage

  1. Run setup.py.
  2. To solve the ongoing Waffle, run main.py as is since the whole process is automated.
    • Use python main.py 1 for daily Waffle and python main.py 2 for deluxe Waffle.
    • If the mode is not given, it will request for one, 1 or 2, depending on whether you want to solve the daily Waffle or deluxe Waffle.
  3. If you decide to not solve the ongoing Waffle, run local_html.py instead. For any number of times, copy your whole HTML page source to run.html and press Enter.

Note that you can't get the HTML source page via Ctrl+U, so here's how you can do it:

nice

How it works

I only learnt CS2040 and CS3243, so those are where this can go as far as.

Telebot integration

It's amazing how this can be wrapped in a Telegram bot. You have two options:

  1. Create env.py and put TOKEN and CHATS as the bot token and the comma-separated chat IDs, respectively. For example:

    TOKEN = 'abcDEF123789'
    CHATS = '123456,-987654,42069'
  2. Use GitHub repository secrets and put TOKEN and CHATS accordingly without the quotation marks. See the image below.

secret

Contributing

asdf

pancake's People

Contributors

chrisgzf avatar russelldash332 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chrisgzf

pancake's Issues

Easily set local time

If you set waffle's local storage's settings key to {"highcontrast":false,"darkmode":true,"localTimezoneEnabled":true} you will immediately see the current timezone's game.

image

Note: This works even if you have an in-progress unsolved game. Like you can override the setting in localstorage and refresh and the game will be forced to load the current timezone's game.

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.