Coder Social home page Coder Social logo

down-bad / tutu-bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 395 KB

A simple, Reddit-focused Discord bot

Home Page: https://tutu.imvasi.com

License: MIT License

JavaScript 100.00%
reddit tutu-bot discord bot discord-bot nodejs urban-dictionary

tutu-bot's Introduction

Tutu Logo

Tutu Bot

A simple, Reddit-focused Discord bot.

Add it to your server: https://tutu.imvasi.com

Features

Reddit

  • ๐Ÿ” Get top posts, hourly/daily/weekly/monthly/yearly/overall
  • ๐Ÿ”€ Get random posts of any subreddit
  • ๐Ÿ†” Get posts by their ID
  • ๐Ÿ”Ž Search for any Reddit post with an advanced search command
  • ๐Ÿ‘ค Get posts from any Reddit user
  • ๐Ÿ’จ Easy and fast navigation with reactions
  • ๐Ÿ”ž NSFW protection, such posts are only shown in NSFW channels

Urban Dictionary

  • ๐Ÿ”Ž Get definitions for anything, using Urban Dictionary
  • ๐Ÿ’ฌ Includes examples, likes & dislikes, and author
  • ๐Ÿ’จ Easy and fast navigation with reactions

Installation

Hosted Version

Tutu Bot is already hosted by me and is running 24/7.
You can add it to your server here:
https://tutu.imvasi.com

Install & Host by yourself

There are many reasons why you would want to do that, such as customizing the bot to your likings. You must follow these instructions in order to install it properly:

Clone the repo

git clone https://github.com/down-bad/TutuBot.git

Then, run

npm install

to install the required dependencies. Make sure you have Node installed.

Edit the configuration

Rename the rename_me.json file to config.json.

Fill out the required information:

  • token: Your bot token
  • ownerID: Your Discord user ID

You need to obtain a Reddit app ID & secret hash in order to use the Reddit functionality of this bot, using the following instructions:

  • Go to Authorized applications
  • Press "Create an app"
  • Enter an application name, a description and a redirect uri (if you're not sure about the redirect uri, just put http://localhost:8080)
  • Choose "script" in the list - that's important
  • Press the "Create app" button

You will get the app's ID under the "personal use script" line and the secret hash.

In config.json, fill out the redditCredentials:

  • username: Your Reddit username
  • password: Your Reddit password
  • app_id: The app ID you obtained above
  • api_secret: The secret hash you obtained above

Make sure you're using the Reddit account that you got the ID with.

Run

node index.js

to run the bot.
Enjoy!

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.