Code Monkey home page Code Monkey logo

hhillabot's Introduction

hhillabot

this work is extended from CodeSammich code:

https://github.com/CodeSammich/discord-bot

i know the coding is bad, clumsy, , but it works, im lazy,

extra new feature:

  • u now no nid to manually !2 or !3 to change the phase, it change automatically using simple image library (PIL ImageGrab, cv2)
  • can run on windows 10 instead of linux, just install python and some other stuff

what changes compared to CodeSammich:

  • updated some depreciated discord.py function (not fully)

how it works:

  • detect the pixel color at 30% 2nd bar
  • detect the pixel color at 20% 3rd bar
  • then change timer automatically

please be note that after a few FMA will got delay due to server latency

please note that this only works on 1366*768 resolution due to that pixel position i set

another thing is sometimes there will be announcement bar on top which overlapped the hhilla hp bar, for this i created two color code at line 165, 166, 172, 173, you need to change them accordingly, just comment out

okay before you do all the steps, install this:

  • python
  • some python related library
  • i think you need to download espeak
  • i dont know what else you need download and pip install, will update this section later

steps to make it work on your windows 10:

  • first go do all the discord dev portal bot thingy create a bot then invite to your server
  • of course clone or download this repository
  • copy the bot token to secret_key.txt
  • start menu -> type 'cmd' -> right click command prompt -> run as administrator
  • cd into your this folder
  • run 'python app.py'
  • wait for bot to log in
  • ok make sure you are an admin role or mod in your own discord server
  • make sure you yourself join any voice call
  • type '!start' in any text channel
  • the timer has started, go kill the b****
  • note that you need to enter '!start' immediately after your party leader enter heretic hilla else the timer will off
  • after you finished (or failed) type '!stop' to stop the bot

it didnt work? okay i dont know maybe make an issue, or ask in my reddit post, i will try to answer.

type '!4' after you win

type '!5' after you all die out

for fun

hhillabot's People

Contributors

tomayoteebroo avatar

Watchers

 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.