Code Monkey home page Code Monkey logo

discord-bot's Introduction

Discord-Song-Bot

This is a discord bot coded in python which can play songs, crack jokes, look up something on the wikipedia using specific command words

To use this code -

  1. You need to make a bot in discord's developer portal - https://discord.com/developers/applications In this page go to the applications section first and make a discord bot, grant it permissions and copy its token number and paste it in the "keys.py" file

  2. Then add this bot to a discord server.

  3. Now run the code. When you hear a beep sound from the python project, it indicates that the bot has come online on the server - you can see it come online on the server too.

  4. Now you can use commands with ">" symbol and wait for the bot to reply.

COMMANDS

You can try the following commands -

  1. ">hi" or ">hello" and the other keywords listed in the dialogues page to "HEY" list to get a hi back from the bot. You can also write ">bye" to get a bye frmom bot.

  2. This bot can also spam whatever string you want it to spam. Just write ">spam (insert the string here)" like ">spam discord". If you want it to shut up just write ">shutup".

  3. Write ">crack a joke" to get a joke as response from the discord bot.

  4. Write ">search (insert the topic to search here)" like ">search adele" and you'll get a search list. To seach a specific topic from the search list just do ">search option (insert option no. here)".

  5. Play songs with it like - ">play roar" and it will play the song for you. DONT FORGET TO JOIN THE VOICE CHANNEL FIRST FOR THIS TO WORK.

NOTE: for the song to work, make sure that you have a "song.mp3" file in the project directory and FFMPEG installed.

  1. Further on you can pause, resume, replay the song that's playing using ">" symbol.

discord-bot's People

Contributors

richk21 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.