Code Monkey home page Code Monkey logo

dankmemer-farmer's Introduction

DankMemer-Farmer

A Discord self-bot that allows you to automate DankMemer tasks. It supports multiple accounts and can be easily configured using config.json and .env files.

Prerequisites

  • Node.js v12 or higher

Installation

  1. Clone the repository:
git clone https://github.com/MoleSchizo/DankMemer-Farmer.git
  1. Install dependencies using:
npm install discord.js-selfbot-v13 winston dotenv
  1. Configure using config.json file or using .env
  2. Start the bot:
npm start

Configuration

To configure the bot, you can either use the config.json file or define variables in a .env file.

Examples of how would they look like:

  • config.json:
{
  "tokens": ["token1"],
  "prefixes": ["!"]
}
  • .env:
TOKENS=token1
PREFIXES=.

License

MIT. See LICENSE for details.

Contributions

We welcome contributions to this project. If you have an idea for a new feature or have found a bug, please open an issue or submit a pull request.

dankmemer-farmer's People

Contributors

dependabot[bot] avatar moleium avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dankmemer-farmer's Issues

error about invalid messages

image

it just sends me the error every time I start it but it says its sending messages in the terminal but its actually not

Working great for a ffew hours or minutes until I got this error

the bot was working great for the past few days but when I run it now it gives me this error

Ignoring exception in command farm:
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1042, in validate_conn
conn.connect()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create
self.do_handshake()
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='discord.com', port=443): Max retries exceeded with url: /api/v9/interactions (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "C:\Dank Memer Autofarm\bot.py", line 19, in farm
Hunt(channel_id, guild_id)
File "C:\Dank Memer Autofarm\slashCommands.py", line 176, in Hunt
req = requests.post('https://discord.com/api/v9/interactions', headers={"authorization": token}, json=payload)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='discord.com', port=443): Max retries exceeded with url: /api/v9/interactions (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)')))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\ext\commands\core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: SSLError: HTTPSConnectionPool(host='discord.com', port=443): Max retries exceeded with url: /api/v9/interactions (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)')))

new error about missing something intents

sorry if im just dumb or something but when I run the program I get this error immediately.

Traceback (most recent call last):
File "C:\Dank Memer Autofarm\bot.py", line 7, in
client = commands.Bot(command_prefix=prefix, self_bot=True)
TypeError: BotBase.init() missing 1 required keyword-only argument: 'intents'

how do i fix

Traceback (most recent call last):
File "C:\Dank Memer Autofarm\bot.py", line 2, in
from slashCommands import *
File "C:\Dank Memer Autofarm\slashCommands.py", line 3, in
ws = websocket.WebSocket()
TypeError: WebSocket.init() missing 3 required positional arguments: 'environ', 'socket', and 'rfile'

This is the error that it gave me.

Hosting

can u make one for replit/heroku with variable so i can host there and can u make it like i can use multiple tokens at the same time pwease

Startup Error

nevermind. I didn't know that tokens can change from time to time so I was confused when the bot stopped working. can be deleted. sorry

ERROR. pls help

I performed all the pre-requisites, but When Run command node src/index.js inside the DankMemer-Farmer folder in CMD
the following error shows up. refer(image)
error

Slash command work around.

Check my lastest repo it has a button interactor but you can use it for slash commands. im too lazy to make an updated version.

Method

I can't use
git clone https://github.com/MoleTheDev/DankMemer-Farmer/edit/main/bot.py
image

Works good, but too simple

you dont really earn much from this but it still works good none the less

some suggestions:

  • more farm tasks to do (I find the ones that pay a lot are more skill based, but that might be an issue since a self bot probably cant do those)
  • visual upgrades, like making the terminal title have stats for how many times you've done a task
  • stop command

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.