Giter Club home page Giter Club logo

autodankmemer's Introduction

AutoDankMemer

Automated bot to farm money on the Dank Memer Discord bot.

Runs a discord.py session on a bot account and sends messages using a user account. The bot has a command system that can only be used by the targeted user account. The commands are listed below.

PLEASE NOTE: While it may seem too easy to farm commands in Dank Memer, the bot does absolutely have an automatic blacklist system which detects spam. It is recommended for you to only use this bot periodically. Leaving running for more than six hours is HIGHLY discouraged and done completely at your own risk.

Features

Commands

  • Plays highlow correctly.
  • Begs for coins.
  • Only selects places for search that never cause death.
  • Posts memes.
  • Uses dig with automatic shovel purchasing.
  • Uses fish and detects and plays the legendary fish minigame.
  • Uses hunt and detects and plays the dragon minigame.
  • Automatically sells sellable items.
  • Automatically purchases lifesavers when you die.
  • Plays trivia and gets the correct answer for 99% of questions.
  • Automatically deposits into the bank.
  • Detects if you are robbed and uses a padlock.
  • Buys more padlocks if you go under 3 remaining.
  • Uses Bank Notes if you find them while fishing, hunting, or posting memes.

Backend

  • Logs profits and costs using a fairly advanced parsing system.
  • Bot command system for management and statistics.
  • Live event queue system which spreads commands out by 2.5 seconds and always keeps the money coming.
  • Although there is no documentation, it is decently modular and allows for adding commands easily.
  • Supports pressing buttons and using discord interactions.
  • Easily move the current operational channel to other servers or channels.
  • Option to allow other accounts to control the bot so you can farm on an alt but control it with your main account.

Notes

  • The bot has the capability to use crime but it is disabled in the source code because it causes so many deaths and the lifesavers get extremely expensive. Modify the variable active_commands at its definition to re-enable it.
  • The trivia command knows almost all of the questions used by API which Dank Memer uses. However, there are 30-40 questions missing out of roughly 4,000.

Commands

dmbot help: Shows this help message.

dmbot stop: Pauses excecution of new commands.

dmbot restart: Restarts excecution of new commands.

dmbot shutdown: Shut down the bot and exit the script.

dmbot status: Shows the current status of the bot.

dmbot lifesavers <on|off>: Choose if a new lifesaver should be purchased when you die.

dmbot active: List all active commands which are in the event loop.

dmbot enable <command>: Stop running a command if it is not already running.

dmbot disable <command>: Start running a command if it is not running.

dmbot transfer <channelid>: Move the bot to the specified channel.

dmbot detach: Wherever the bot is running, move it into the current channel.

dmbot summary: Show current statistics on costs and profits.

Configuration

  • Open AutoDankMemer.py and go to the python list on line 210. Edit it and remove any modules you don't want to use.
  • Keep the list on line #209 intact and use it as a template. "crime" is disabled on line 210 by default.
  • Open BotConfig.json.
  • Have a bot in a server with yourself and Dank Memer.
  • Place the bot's token in the space which reads BOT_TOKEN.
  • Place your own user token in the space which reads USER_TOKEN.
  • Enable discord developer mode if it is not already on.
  • Copy the Channel ID where you want to start out and put it, as a string, in CHANNEL_ID. (This can be changed once the bot is running, see the list of commands for more details)
  • If you have another account that you want to use to control the bot, put it as a string inside of AUTHORIZED_USERS which is a list. The account of USER_TOKEN will always be allowed to use the bot so do not add it to this list.
  • Optionally, include the trivia.json in the same folder as the script is running to let it always get trivia questions correct.

autodankmemer's People

Contributors

devmystical avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

autodankmemer's Issues

ISSUE PLS FIXKS

Ignoring exception in on_message
Traceback (most recent call last):
File "C:\Users\varda\AppData\Local\Programs\Python\Python37\lib\site-packages\discord\client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "C:\Users\varda\OneDrive\Desktop\AutoDankMemer-main\AutoDankMemer.py", line 316, in on_message
bot_message = BotMessage(message)
File "C:\Users\varda\OneDrive\Desktop\AutoDankMemer-main\AutoDankMemer.py", line 88, in init
if str(self.message.reference.message_id) in message_ids[command]:
AttributeError: 'NoneType' object has no attribute 'message_id'

PLS FIX LK)PKSAD

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.