A Discord bot for NBA scores, stats, news and simulated betting.

Related tags

Video/Audio NBABot
Overview

A Discord bot for NBA scores, stats, news and simulated betting.

Support Server Lines of code

Support me on Patreon

The Story Thus Far

Hi, we're Eliot and Justin, and we are the creators of NBABot. We met around 2018 when the project was in its very early stages. We are fans of the Suns and Knicks respectively, Eliot being from New Zealand, and Justin being from New York.

NBABot is truly influenced by our users feedback and our passion for the game of basketball. When NBABot first started, we had no clue it would become as big as it is today, and we owe that to our users. We want people to get involved, give feedback, and be able to see how much this project means to us. Some of the premier features of the bot are:

  • Live Scores
  • Simulated Betting
  • News Updates
  • Player Comparisons

And many more. You can check it out by inviting NBABot, or using NBABot in our support server.

Installation

The installation of NBABot to run on your own is something that requires a previous knowledge of discord.js, javascript, and basic coding principals. We are working on documentation and expect some more news on this front soon.

Watch a video guide for macOS here: https://www.youtube.com/watch?v=H43I2qVlAJY

  1. Download NBABot's source code either through downloading it as a .zip file, or with the command git clone https://https://github.com/NBABot-Development-Team/NBABot.git.
  2. Install NodeJS on your computer.
  • For MacOS/Linux, I would recommend using nvm.
  • For Windows, you can just install NodeJS from the official website here.
  • The current reccommended version of NodeJS to install is v16.17.0, but you are free to try and get other versions working.
  1. From the /src directory, you will to need to install the required packages with the command npm install.
  • Note: the package node-canvas usually does not install at first, so make sure you follow the installation steps here if an error occurs during installation.
  1. Create a Discord bot if you have not already:
  • Go to the Discord Developers page here and press the 'New Application' button.
  • Give your Discord bot a name
  • Then, navigate to the 'Bot' tab, and press 'Add Bot'.
  • Now, you can invite your bot to a server:
    • Press the 'OAuth2' tab,
    • Press the 'URL Generator' tab under 'OAuth2',
    • Select 'bot' and 'applications.commands' under 'Scopes'
    • Then select - at a minumum - the 'Bot Permissions': 'Send Messages', 'Send Messages in Threads', 'Manage Messages', 'Embed Links', 'Attach Files', 'Read Message History', 'Use External Emojis' and 'Use Slash Commands'. If you ever get into issues with the bot not having enough permissions, you can just give it 'Administrator' and things should be sorted out.
    • Copy the link at the bottom and use the link to invite the bot to a server.
  1. Make a copy of the file config.json.example.
  2. Rename the copy to config.json.
  3. Open the new config.json file and insert the following essential details:
  • token is your Discord Bot's token, which you can find back at the Discord Developers page, under the 'Bot' tab. Press 'Reset Token' and copy the long string of letters which appear.
  • clientId is your Discord Bot's Application ID, which you can find back on the Discord Developers page, under the 'General Information', tab, as 'Application ID'.
  • activityText is the message NBABot has when you click its profile, change this to whatever you like
    • For example, "activityText": "with stats", will change NBABot's activity status to Playing with stats.
  • All the rest are unnecessary and only used for the official NBABot.
  1. Create a cache folder in the src directory.
  2. You will need to create a file called today.json in a src/cache directory, then copy the contents here to that file.
  3. Go back to your command line and run node bot.js.
  4. NBABot should now be running in your server!
  • To keep it running in the background, I would recommend a package like pm2.
  • If the slash commands do not appear when in NBABot's server, type nba update into the server and the commands should be added.

Note: NBABot currently is only available in a limited form without the simulated betting and user settings, as those require a MySQL database on your computer. This will later be explained with a guide. If you are confident enough, you can try install MySQL, use the framework database nba.sql, then try the database commands, but I cannot guarantee they will work at this stage. In other words, betting commands do not work by default as they require installing MySQL.

How to Support Us

NBABot, as much as it is a passion project, is very time consuming and involves a lot of upfront cost. We hope to not only one day be able to pay for the server costs (around $90 USD per month), but also further development and in bringing on other experts to help us with Web Development or marketing.

If you want to support us monetarily, you can support on Patreon.

Otherwise, you can vote for us on top.gg, and you'll also recieve $10 in the virtual betting system!

License

Released under the GNU GPL v3 license.

You might also like...

A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment.

hazel A discord bot using @discord.js and mongoose. Used for music, moderation, and entertainment. Features Music ― supporting YouTube, Spotify and So

Dec 31, 2022

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

Dec 3, 2022

Denky is a multipurpose Discord bot, build with Node.js, TypeScript and discord.js.

🤖 Denky Bot Denky is a brazilian Discord bot, build with Node.js, TypeScript and discord.js. ⚙️ How to Create a Discord application. Guide Install No

Apr 6, 2022

Sample discord bot using clashofclans.js and discord.js

Clash of Clans sample discord bot using NodeJs Introduction This sample bot project aims to help you get started with interacting Clash of Clans API u

Dec 16, 2022

Denky is a multipurpose Discord bot used in +3000 servers. Built with Node.js, TypeScript and discord.js.

🤖 Denky Bot Denky is a brazilian Discord bot, built with Node.js, TypeScript and discord.js. ⚙️ Self hosting ⚠️ Support will not be provided for self

Dec 26, 2022

A bot that allows you to control pterodactyl from discord powered by discord.js 12 and mongodb

A bot that allows you to control pterodactyl from discord powered by discord.js 12 and mongodb

A bot that allows you to control pterodactyl from discord powered by discord.js 12 and mongodb

Dec 24, 2022

A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands & Buttons. Make Giveaways and…

A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands & Buttons. Make Giveaways and…

Giveaway - Discord Bot A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands. Make Giveaways and more..! Explore the d

Dec 5, 2022

Aeona is a multi-purpose discord bot ready to skill up and boost up your Discord server! It has an State of the Art AI chatbot to make sure you never feel bored!

Aeona | Chatbot Aeona is an ever-growing multipurpose bot; primarily a fun chatbot you can converse with, but also showcases a wide range of fun comma

Jan 9, 2023

Eclipse is a multipurpose Discord bot. Built with Node.js, TypeScript and discord.js.

🤖 Eclipse Bot Eclipse is a brazilian Discord bot, built with Node.js, TypeScript and discord.js. 💻 Self-Hosting ⚠️ Support will not be provided for

Dec 15, 2022
Comments
  • http://data.nba.net/10s/prod/v2/today.json returns dead

    http://data.nba.net/10s/prod/v2/today.json returns dead

    Navigating there returns

    "Service Unavailable - DNS failure The server is temporarily unable to service your request. Please try again later."

    I appreciate it's not your site. Just thought you should be aware.

    opened by Ant-Acid 4
Releases(v3.0.1)
Owner
NBABot Development Team
NBABot Development Team
A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

Public Bot and Support Server! Invite the Public Version of this Bot so you don't need to host it by yourself or join my Discord server to get a custo

Tomato6966 472 Dec 25, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with buttons. It can play youtube songs, playlists. This bot code was made by Supreme#2401. It uses djs V12

Lofi-Radio-Music-Bot It is a discord bot bot which can play lofi song in different language 24/7. It has premium system and cool embed looks with butt

Diwas Atreya 89 Jan 2, 2023
This bot is a cool Discord bot made in discord.js using Node.JS

Anti-Crosspost Discord Bot This bot is a cool Discord bot made in discord.js using Node.JS. It detects when a user cross-posts a message in multiple c

Muhammad Usman Mithani 4 May 31, 2022
Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! ?? ?? Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

YMafalha 19 Nov 11, 2022
New base bot WhatsApp 🈴 bukan self bot lagi atau buka bot yang bisa di pakai oleh bot sendiri 😎

Installation • Thanks to • Donate Official Group Bot • Settings Instalasi Heroku Buildpack Click the deploy icon below ! > heroku/nodejs > https://g

zeeone 27 Feb 9, 2022