Giter Site home page Giter Site logo

brainhub24 / discord-emulator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dvorakdwarf/discord-emulator

0.0 0.0 0.0 417 KB

A discord bot that can be used to play any game boy game using the discord chat

License: MIT License

Python 100.00%

discord-emulator's Introduction

GitHub

Discord-Emulator

A discord bot that can be used to play any game boy game using the discord chat. The way the bot works is that the emulator runs on a seperate thread. When the bot sees somebody wants to press a button, it changes one of the bools in a dictionary to True. The game loop checks the dictionary for when one of the bools is True. When it detects a button is pressed, it sends input to the emulator and changes the button back to False. Rinse and repeat

It will save periodically, depenidng on what you set it to. The default is a save each 10 minutes. IT WILL KEEP SAVING THE ENTIRE TIME THE PROGRAM IS ON. The save files weigh basically nothing, though. You should delete older ones periodically

How to run it

Peek 2022-11-06 17-50

Put the path to your ROM in the relevant variable. Run observer.py to start the bot. It will ask you your token and the ID of the channel you want the bot to monitor for commands. After that it opens a window of the ROM running. Use {prefix}help to see a further description of the bot and what it does. Use {prefix}press [a, b, start, select, up, down, left, right] to press a button in the emulator. Somebody needs to screenshare the game window in the discord server for members to see anything

A more detailed description later. Contact me if you need help Also tell me if you are planning on hosting an event with this bot, I wanna see it.

Do what you want with the code, but credit would be much appreciated. Contact info in the profile

It is not strcitly necessary, but I highly recommend naming the bot "The Observer" and giving it this pfp: EQ1p524U4AAAppn

discord-emulator's People

Contributors

dvorakdwarf avatar

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.