All Projects → Der-Eddy → Discord_bot

Der-Eddy / Discord_bot

Licence: mit
Discord Chat Bot made with discord.py

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Discord bot

Schedulebot
A Discord bot that makes scheduling easy
Stars: ✭ 44 (-35.29%)
Mutual labels:  discord-bot
Crucian
⚡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12
Stars: ✭ 55 (-19.12%)
Mutual labels:  discord-bot
Rpgbot
A Discord Bot with lots of RPG utilities
Stars: ✭ 63 (-7.35%)
Mutual labels:  discord-bot
Community Bot
The bot used on the TypeScript Community discord server
Stars: ✭ 46 (-32.35%)
Mutual labels:  discord-bot
Zira
Zira is a Discord Bot that allows you to react to an emoji on a message and manage a users roles.
Stars: ✭ 55 (-19.12%)
Mutual labels:  discord-bot
Bottyclient
A slim Discord client with many cool features including less network traffic which supports bot tokens, but user tokens theoretically work too. Tags: Discord Bot Client Token for Bot Botting Download English
Stars: ✭ 58 (-14.71%)
Mutual labels:  discord-bot
Automod Bot
Fun moderation economy bot discord.js
Stars: ✭ 41 (-39.71%)
Mutual labels:  discord-bot
Axoncore
The best fully featured discord bot framework for javascript (eris, discordjs or detritusjs)!
Stars: ✭ 68 (+0%)
Mutual labels:  discord-bot
Hoshi
Discord bot for starboard
Stars: ✭ 55 (-19.12%)
Mutual labels:  discord-bot
Spacexlaunchbot
A Discord bot for getting news, information, and notifications about upcoming SpaceX launches
Stars: ✭ 63 (-7.35%)
Mutual labels:  discord-bot
Kyoko
Moved to GitLab: https://gitlab.com/KyokoBot
Stars: ✭ 50 (-26.47%)
Mutual labels:  discord-bot
Express
A discord.js bot for music and moderation free and open source
Stars: ✭ 54 (-20.59%)
Mutual labels:  discord-bot
Discord.js Lavalink
A discord.js lavalink client
Stars: ✭ 62 (-8.82%)
Mutual labels:  discord-bot
Mtgdesktopcompanion
Cards manager for magic the gathering
Stars: ✭ 44 (-35.29%)
Mutual labels:  discord-bot
Discord Slash Bot
This bot is a simple Discord Slash Bot.
Stars: ✭ 64 (-5.88%)
Mutual labels:  discord-bot
Dagbot
The official Repository for dagbot, the self proclaimmed n1 meme bot.
Stars: ✭ 40 (-41.18%)
Mutual labels:  discord-bot
Nitro
A discord bot
Stars: ✭ 56 (-17.65%)
Mutual labels:  discord-bot
Avaire
A multipurpose Discord bot made for fun
Stars: ✭ 68 (+0%)
Mutual labels:  discord-bot
Discord feedbot
Moved to https://gitlab.com/ffreiheit/discord_feedbot
Stars: ✭ 67 (-1.47%)
Mutual labels:  discord-bot
Musicbot
🎶 A Discord music bot that's easy to set up and run yourself!
Stars: ✭ 1,109 (+1530.88%)
Mutual labels:  discord-bot

Avatar Slogan

Python3 GitHub license Discord Server Docker CodeQL

ATTENTION: This bot uses the new version of discord.py v1.6+, if you want to use my bot with the old legacy discord.py version check out the legacy branch. This is mostly a german discord chat bot made with discord.py v1.6+.
If you are looking for a python discord bot to host for yourself, you should rather take a look at Red Bot if you want a highly customizable self-hosted python bot. Shinobu is only meant to be run on my own server.

Using pip install discord.py will install the latest discord.py version.

Commands List

Info: Diese Liste gilt für den Standardprefix :

Generic

Command und Aliases Beschreibung Nutzung
:help Zeigt eine Liste aller öffentlichen Commands :help, :help kawaii

Forum

Command und Aliases Beschreibung Nutzung
:epvpis, :epvp Sucht nach einem Benutzernamen auf Elitepvpers :epvpis Der-Eddy
:epvpverify, :verify Verifiziert einen Discord Benutzer über Elitepvpers :epvpverify, :epvpverify Der-Eddy

Utility

Command und Aliases Beschreibung Nutzung
:status, :s, :uptime, :up Listet einige Informationen zum Bot aus :status
:ping Misst die Response Time :ping
:github Verlinkt zu diesem GitHub Repo :github
:about, :info Informationen über Shinobu Oshino :about
:log, :archive Archiviert den Log des derzeitigen Channels und läd diesen als Attachment hoch :log 10
:invite Erstellt einen Invite Link für den derzeitigen Channel :invite
:whois Gibt Informationen über einen Benutzer aus :whois @Der-Eddy#6508
:emoji, :e Gibt eine vergrößerte Version eines angegebenen Emojis zurück :emoji Emilie
:emojis Gibt alle Emojis aus auf welche der Bot Zugriff hat :emojis
:server, :serverinfo, :guild, :membercount Gibt Informationen über die derzeitge Discord Guild aus :server
:timer, :reminder Setzt einen Timer und benachrichtigt einen dann :timer 13m Pizza, :timer 2h
:source Zeigt den Quellcode für einen Befehl auf GitHub an :source kawaii
:commands Zeigt an wie oft welcher Command benutzt wurde seit dem letzten Startup :commands
:roleUsers Listet alle Benutzer einer Rolle auf :roleUsers Admins
:games Zeigt welche Spiele wie oft auf dem Server gerade gespielt werden :games
:spoiler Erstellt ein GIF Bild welches beim Hover einen Spoiler Text anzeigt :spoiler
:ranks, :rank, :role, :roles Auflistung aller Ränge oder beitritt eines bestimmten Ranges :ranks, :ranks Python'
:addvote Fügt Emotes als Reactions hinzu für Abstimmungen/Umfragen :addvotes, :vote, :votes

Anime

Command und Aliases Beschreibung Nutzung
:kawaii Gibt ein zufälliges kawaii Bild aus :kawaii
:nsfw Vergibt die Rolle um auf die NSFW Channel zugreifen zu können. Nur auf Eddys Server! :nsfw
:hello, :wave, :hi, :ohaiyo Nonsense gifs zum Hallo sagen :hello
:nep, :nepu, :topnep Can't stop the Nep :nep
:pat /r/headpats Pat Pat Pat :3 :pat @Der-Eddy#6508
:ratewaifu, :rate, :waifu Bewertet deine Waifu :ratewaifu Shinobu
:anime, :anilist Sucht auf AniList.co nach einem Anime und gibt die Basis-Informationen zurück :anime Mushishi
:manga Sucht auf AniList.co nach einem Manga und gibt die Basis-Informationen zurück :manga Air Gear
:saucenao, :sauce, :iqdb Versucht die Quelle eines Anime Bildes zu finden :saucenao https://i.imgur.com/nmnVtgs.jpg

Fun

Command und Aliases Beschreibung Nutzung
:java, :javascript, :nodejs, :js Weil Java != Javscript :java
:csharp, :c++, :c#, :objective-c Wie soll man da überhaupt durchblicken??? :csharp
:praise Praise the sun :praise
:css Counter Strike: Source :css
:countdown It's the final countdown :countdown
:neko, :cat, :randomcat Zufällige Katzen Bilder nyan~ :neko
:random, :rand Gibt eine zufällige Zahl oder Member aus :random, :random coin, :random 6, :random 10 20, :random user
:steinigt Monty Python :steinigt @Ravenstorm#1191
:hype, :hypu, :train HYPE TRAIN CHOO CHOO :hype
:xkcd Zeigt den letzten oder zufälligen XKCD Comic :xkcd, :xkcd random
:reaction, :r, :addreaction Fügt der letzten Nachricht ein Emoji als Reaction hinzu oder einer bestimmten Nachricht :reaction ok_hand, :reaction sunglasses 247386709505867776
:pun, :witz, :joke Weil jeder schlechte Witze mag :pun

Mod

Command und Aliases Beschreibung Nutzung
:purge, :prune Löscht mehere Nachrichten auf einmal. MOD ONLY :purge 100
:kick Kickt ein Mitglied mit einer Begründung. MOD ONLY :kick @Der-Eddy#6508, :kick @Der-Eddy#6508 Spammt Werbung
:ban Bannt ein Mitglied mit einer Begründung. MOD ONLY :ban @Der-Eddy#6508, :ban @Der-Eddy#6508 Spammt Werbung
:unban Entbannt ein Mitglied mit einer Begründung. MOD ONLY :unban 102815825781596160
:bans Listet aktuell gebannte User auf. MOD ONLY :bans
:removereactions Entfernt alle Emoji Reactions von einer Nachricht. MOD ONLY :removereactions 247386709505867776
:permissions Listet alle Rechte des Bots auf. ADMIN OR BOT OWNER ONLY :permissions
:hierarchy Listet die Rollen-Hierarchie des derzeitigen Servers auf. ADMIN OR BOT OWNER ONLY :hierarchy
:setrank, :setrole, :sr Vergibt einen Rang an einem Benutzer. MOD ONLY :setrole @Der-Eddy#6508 Member
:rmrank, :rmrole, :removerole, :removerank Entfernt einen Rang von einem Benutzer. MOD ONLY :rmrole @Der-Eddy#6508 Member

Admin

Command und Aliases Beschreibung Nutzung
:shutdown, :quit Schaltet den Bot aus. BOT OWNER ONLY :shutdown
:restart Startet den Bot neu. BOT OWNER ONLY :restart
:avatar Setzt einen neuen Avatar. BOT OWNER ONLY :avatar https://i.imgur.com/iJlPa3V.png
:changegame, :game Ändert das derzeit spielende Spiel. BOT OWNER ONLY :changegame Dark Souls
:changestatus Ändert den Online Status vom Bot. BOT OWNER ONLY :changestatus idle
:name Ändert den globalen Namen vom Bot. BOT OWNER ONLY :name Shinobu-chan
:servers Listet die aktuellen verbundenen Server auf. BOT OWNER ONLY :servers
:leaveserver Schaltet den Bot aus. BOT OWNER ONLY :leaveserver 102817255661772800
:echo Gibt eine Nachricht als Bot auf einem bestimmten Channel aus. BOT OWNER ONLY :echo 102817255661772800 Ich bin ein Bot!
:discriminator Gibt Benutzer mit dem jeweiligen Discriminator zurück. BOT OWNER ONLY :discriminator 6508
:nickname Ändert den Server Nickname vom Bot. BOT OWNER ONLY :nickname Shinobu
:setnickname Ändert den Nickname eines Benutzer. BOT OWNER ONLY :setnickname @Der-Eddy#6508 Shinobu
:geninvite Generiert einen Invite für einen Server wenn möglich. BOT OWNER ONLY :geninvite 102817255661772800

Run (Docker method)

GitHub Actions erstellt automatisch ein Docker image unter ghcr.io/der-eddy/shinobu_bot (AMD64 und ARM64). Unter docker-compose.examle.yml findet ihr ein Beispiel wie man dieses einsetzt:

version: '3.9'

services:
discord_bot:
    container_name: discord_bot
    image: ghcr.io/der-eddy/shinobu_bot:latest
    restart: always
    volumes:
    - discord_bot_data:/discord_bot/config
    environment:
    DISCORD_TOKEN: 'INSERT BOT TOKEN HERE'
    DISCORD_PREFIX: ':' #OPTIONAL Prefix for all commands, defaults to colon
    DISCORD_BOTSERVERID: '102817255661772800' #OPTIONAL Specifies the main serverid from which the server-/modlog should be taken + some other nito features
    DISCORD_KAWAIICHANNEL: '207909155556687872' #OPTIONAL specified a channel where the :kawaii commands gets this pinned messages
    DISCORD_GREETMSG: '{emoji} Welcome {member} on my server!' #OPTIONAL sends a greet message to new user in the botserverid system channel
    DISCORD_LEAVEMSG: ':sad: {member} left the server' #OPTIONAL sends a leave message to the botserverid system channel

volumes:
discord_bot_data:

Anzumerken ist dass das Docker Image Googles distroless Python 3.7 Basis benutzt, d.h. das nicht mal eine Shell vorinstalliert ist. Ihr könnt natürlich auch euer eigenes Docker Image anhand der Dockerfile selber bauen lassen-

Run (old method)

Erstellt zuerst ein virtuelles environment für Python über python3.7 -m venv env und aktiviert es über source env/bin/activate (Linux only). Anschließend könnt ihr alle benötigten Abhängikeiten über pip install -r requirements.txt installieren. (Um aus der virtuellen Umgebung wieder raus zu kommen einfach deactivate eintippen)

Anschließend started ihr das Script direkt über python3 main.py oder erstellt eine systemd service unit, ein Beispiel findet ihr unter discord.service.example:

[Unit]
Description=Shinobu Discord Bot
After=multi-user.target
[Service]
WorkingDirectory=/home/eddy/discord_bot
Environment="PYTHONHASHSEED=0"
User=eddy
Group=eddy
ExecStart=/usr/bin/python3 /home/eddy/discord_bot/main.py
Type=idle
Restart=on-failure
RestartSec=15
TimeoutStartSec=15

[Install]
WantedBy=multi-user.target

Nach /etc/systemd/system/discord.service kopieren und anpassen. Nicht vergessen die Unit zu starten via sudo systemctl start discord.service bzw. Autostart via sudo systemctl enable discord.service.

Einstellungen

Vor dem Start muss im Ordner config eine Datei namens config.py angelegt werden, ein Beispiel einer solchen gibt es in config.example.py zu finden:

__token__ = 'INSERT BOT TOKEN HERE'
__prefix__ = ':' #OPTIONAL Prefix for all commands, defaults to colon
__timezone__ = 'Europe/Berlin' #OPTIONAL
__botserverid__ = 102817255661772800 #OPTIONAL Specifies the main serverid from which the server-/modlog should be taken + some other nito features
__kawaiichannel__ = 207909155556687872 #OPTIONAL specified a channel where the :kawaii commands gets this pinned messages
__greetmsg__ = '{emoji} Welcome {member} on my server!' #OPTIONAL sends a greet message to new user in the botserverid system channel
__leavemsg__ = ':sad: {member} left the server' #OPTIONAL sends a leave message to the botserverid system channel
__selfassignrole__ = 'NSFW' #OPTIONAL allows to selfassign a role like NSFW on the BOTSERVERID

Alternativ für Heroku oder Docker Umgebungen können environment variables statt einer config.py Datei genutzt werden:

DISCORD_TOKEN: 'INSERT BOT TOKEN HERE'
DISCORD_PREFIX: ':' #OPTIONAL Prefix for all commands, defaults to colon
DISCORD_TIMEZONE: 'Europe/Berlin' #OPTIONAL
DISCORD_BOTSERVERID: '102817255661772800' #OPTIONAL Specifies the main serverid from which the server-/modlog should be taken + some other nito features
DISCORD_KAWAIICHANNEL: '207909155556687872' #OPTIONAL specified a channel where the :kawaii commands gets this pinned messages
DISCORD_GREETMSG: '{emoji} Welcome {member} on my server!' #OPTIONAL sends a greet message to new user in the botserverid system channel
DISCORD_LEAVEMSG: ':sad: {member} left the server' #OPTIONAL sends a leave message to the botserverid system channel
DISCORD_SELFASSIGNROLE: 'NSFW' #OPTIONAL allows to selfassign a role like NSFW on the BOTSERVERID

In games.py kann man die Titel der "Playing-" Rotation anpassen. Platzhalter wie {servers} oder {members} sind möglich.

__games__ = [
    (discord.ActivityType.playing, 'with Eddy-Senpai'),
    (discord.ActivityType.playing, 'with Cats'),
    (discord.ActivityType.playing, 'try :help'),
    (discord.ActivityType.playing, 'try :about'),
    (discord.ActivityType.playing, 'with VS Code'),
    (discord.ActivityType.playing, 'with Python'),
    (discord.ActivityType.playing, 'with async'),
    (discord.ActivityType.playing, 'with Karen-chan'),
    (discord.ActivityType.playing, 'with Hinata-chan'),
    (discord.ActivityType.playing, 'with Eduard Laser'),
    (discord.ActivityType.watching, 'over {guilds} Server'),
    (discord.ActivityType.watching, 'over {members} Members'),
    (discord.ActivityType.watching, 'Trash Animes'),
    (discord.ActivityType.watching, 'you right now'),
    (discord.ActivityType.watching, 'Hentai'),
    (discord.ActivityType.listening, 'Podcasts')
]
__gamesTimer__ = 2 * 60 #2 minutes

Erweiterungen (Cogs) die beim starten aktiviert werden sollen, kann man in cogs.py einstellen:

__cogs__ = [
    'cogs.admin',
    'cogs.mod',
    'cogs.fun',
    'cogs.anime',
    'cogs.utility',
    'cogs.help'
    ]

Support

Gibts auf meinem Discord Server: https://discord.gg/kPMbPDc

Troubleshooting

Sollte z.B. aus irgendeinem Grund die mod.py cog nicht geladen werden, kann der Bot vom Bot Besitzer über :shutdown_backup heruntergefahren werden. Weitere Tipps folgen

List of requirements

python>=3.7.0
discord.py
aiohttp
websockets
pytz
pillow

For a pinned version check requirements.txt

License

MIT License

Copyright (c) 2016 Eduard Nikoleisen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].