A Discord bot that rewards players in Minecraft for sending messages on Discord

Overview

MCRewards-Discord-Bot

A Discord bot that rewards players in Minecraft for sending messages on Discord

How to setup:

  • Download this git as a .zip, or clone it.
  • Install the pip packages in requirements.txt with pip install -r requirements.txt or pip3 depening on how your system is setup.
  • Go to config.json and fill out the needed info.
  • Don't change levels.json or accountdata.json from the default ones on GitHub on first use, the bot will manage those files for you. After you have some data in them, you can change the vaules or whatever, just restart the bot once you do.
  • Start the bot with main.py.
  • Your users must link their Discord account to their Minecraft account with the mcr!link <username> command. Eg: mcr!link MrRazamataz. They will be reminded to link if they haven't every time they level up, otherwise the rewards won't work. They can change their username thats saved by re-running the command.

Other things and Info:

Idea comes from this thread on r/admincraft https://www.reddit.com/r/admincraft/comments/qh3175/plugin_for_ingame_rewards_for_being_active_in/

The code is simple, it's not meant to be advanced. Yes, there may be better ways to code this, like not using .json to store data or not using so many global variables, but it's simple and it works well.

The bot saves the levels.json file to disk from RAM every 3 mins.
Everytime a change is made to accountdata.json via a bot command, the changes are saved instantly.

Planned:

[ ] A method to protect against spam leveling up.
[ ] An easy way for admins to add reward commands.

Let me know of suggestions by creating an issue in the Github issues TAB.

Compatibility:

It is compatibile with every server software that offers support for rcon. Just fill out the info in config.json. It runs commands with the players username that is stored in accountdata.json. The commands currently can only be edited in the code (it's quite simple) in reward.py.

You might also like...
Discord Bot Sending Members - Leaked by BambiKu ( Me )

Wokify Bot Discord Bot Sending Members - Leaked by BambiKu ( Me ) Info The Bot was orginaly made by someone else! Ghost-Dev just wanted to sell "priva

A discord bot for tracking Iranian Minecraft servers and showing the statistics of them

A discord bot for tracking Iranian Minecraft servers and showing the statistics of them

A bot to get Statistics like the Playercount from your Minecraft-Server on your Discord-Server

Hey Thanks for reading me. Warning: My English is not the best I have programmed this bot to show me statistics about the player numbers and ping of m

A discord bot providing notifications of player activity on a minecraft server.

tos-alert A discord bot providing notifications of player activity on a minecraft server. Setup By default the app does not launch and will crash with

MCNameBot is a fast discord bot that is used to check the availability of a Minecraft name with a simple command.

MCNameBot MCNameBot is a fast discord bot that is used to check the availability of a Minecraft name with a simple command. If you would like to just

A simple Telegram bot that can broadcast messages and media to the bot subscribers. with mongo DB support
A simple Telegram bot that can broadcast messages and media to the bot subscribers. with mongo DB support

๐˜ฝ๐™ง๐™ค๐™–๐™™๐™˜๐™–๐™จ๐™ฉ ๐˜ฝ๐™ค๐™ฉ A simple Telegram bot that can broadcast messages and media to the bot subscribers using MongoDB. Features Support mongodb.c

A discord bot to check if messages have the correct code formatting.
A discord bot to check if messages have the correct code formatting.

discord-code-formatter A discord bot to check if messages have the correct code formatting. This was a basic project to help me learn Python and learn

A Discord bot that generates inspirational quotes & motivating messages whenever a user is sad
A Discord bot that generates inspirational quotes & motivating messages whenever a user is sad

Encourage bot is a discord bot that allows users to randomly get Inspirational quotes messages and gives motivational encouragements whenever someone says that he's sad/depressed.

 Discondelete, is a Discord self-bot to delete dm's or purge all messages from a guild.
Discondelete, is a Discord self-bot to delete dm's or purge all messages from a guild.

Discondelete Discondelete, is a Discord self-bot to delete dm's or purge all messages from a guild. Report Bug ยท Request Feature Table of Contents Abo

Comments
  • cant run main.py

    cant run main.py

    I have python and pip installed I followed the instructions on GitHub I installed requirements.txt this is the error I got in pycharm when I tried also running it in it

    Starting up... [MCRewards] Loaded cog [MCRewards] Loaded cog [MCRewards] Loaded cog Traceback (most recent call last): File "C:\Users\baccu\Desktop\MCRewards-Discord-Bot-main\main.py", line 40, in client.run(token) File "C:\Users\baccu\Desktop\MCRewards-Discord-Bot-main\venv\lib\site-packages\discord\client.py", line 723, in run return future.result() File "C:\Users\baccu\Desktop\MCRewards-Discord-Bot-main\venv\lib\site-packages\discord\client.py", line 702, in runner await self.start(*args, **kwargs) File "C:\Users\baccu\Desktop\MCRewards-Discord-Bot-main\venv\lib\site-packages\discord\client.py", line 666, in start await self.connect(reconnect=reconnect) File "C:\Users\baccu\Desktop\MCRewards-Discord-Bot-main\venv\lib\site-packages\discord\client.py", line 601, in connect raise PrivilegedIntentsRequired(exc.shard_id) from None discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead. Exception ignored in: <function _ProactorBasePipeTransport.del at 0x0000020770EF79A0> Traceback (most recent call last): File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in del self.close() File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon self._check_closed() File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed Exception ignored in: <function _ProactorBasePipeTransport.del at 0x0000020770EF79A0> Traceback (most recent call last): File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in del File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon File "C:\Users\baccu\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed RuntimeError: Event loop is closed

    Process finished with exit code 1

    opened by M1noa 2
Owner
Hello. I code crap and run a mc server. yay
null
DISCORD script to automate sending messages to a particular server

discord discord script This script sends random quotes to an discord server and tags random users on the server in the process MADE WITH LOVE BY SACS

Solomon ogu 1 Nov 6, 2021
A simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statistical tables and plots to users as Telegram messages.

telegram-stats-bot Telegram-stats-bot is a simple bot that lives in your Telegram group, logging messages to a Postgresql database and serving statist

null 22 Dec 26, 2022
Discord bot script for sending multiple media files to a discord channel according to discord limitations.

Discord Bulk Image Sending Bot Send bulk images to Discord channel. This is a bot script that will allow you to send multiple images to Discord channe

Nikola Arbov 1 Jan 13, 2022
Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages or sending secret message through mail.

Secret-Whisper A Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages ?? or sending secr

null 3 Jan 1, 2022
A python notification tool used for sending you text messages when certain conditions are met in the game, Neptune's Pride.

A python notification tool used for sending you text messages when certain conditions are met in the game, Neptune's Pride.

Paul Clarke 1 Jan 16, 2022
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

Aran 1 Oct 13, 2021
An Undertale RPG Discord bot to fight monsters, bosses, level up and duel with other players

UNDERTALE-RPG An Undertale RPG Discord bot to fight monsters, bosses, level up and duel with other players!. Explanation you can collect gold which is

null 2 Oct 21, 2021
A Discord bot that allows you to rapidly deploy Minecraft servers seamlessly and painlessly from Discord.

Lyra - rapidly and painlessly deploy Minecraft servers from Discord Lyra lets you deploy Minecraft server instances via Docker with control through a

null 1 Dec 23, 2021
Discord bot code to stop users that are scamming with fake messages of free discord nitro on servers in order to steal users accounts.

AntiScam Discord bot code to stop users that are scamming with fake messages of free discord nitro on servers in order to steal users accounts. How to

H3cJP 94 Dec 15, 2022
This is a telegram bot hosted by a Raspberry Pi equipped with a temperature and humidity sensor. The bot is capable of sending plots and readings.

raspy-temperature-bot This is a telegram bot hosted by a Raspberry Pi equipped with a temperature and humidity sensor. The bot is capable of sending p

null 31 May 22, 2022