Showing results for tags 'nodejs'. - Extra Life Community Hub Jump to content

Search the Community

Showing results for tags 'nodejs'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Extra Life News
    • Extra Life Updates
    • Best Practices
    • Community Content
    • Why I Extra Life
    • Fundraising
    • Contests
  • Gaming News
  • Features
  • Podcast

Discussions

  • Extra Life Discussions
    • General Extra Life Discussion
    • Local Extra Lifers
    • Fundraising Ideas
    • Live Streaming Tips & Tricks
    • Official Extra Life Stream Team Discussion
    • Extra Life JSON Code Discussion & Sharing
    • Extra Life United
    • Extra Life Q & A
  • Articles & Extra Life Announcements
    • Announcements
  • Official Extra Life Guilds
    • Guild information and Discussion
    • Canada
    • Northeastern US
    • Southeastern US
    • Central US
    • Western US
  • Gaming Discussions
  • Other Stuff
  • Denver Extra Life Guild's Recent Posts

Calendars

  • Extra Life Community Calendar
  • Extra Life Stream Team
  • Akron Guild
  • Albany Guild
  • Albuquerque Guild
  • Anchorage Guild
  • Atlanta Guild
  • Austin Guild
  • Bakersfield Guild
  • Baltimore Guild
  • Birmingham Guild
  • Boston Guild
  • Burlington Guild
  • Buffalo Guild
  • Calgary, AB Guild
  • Morgantown Guild
  • Charlottesville Guild
  • Chicago Guild
  • Cincinnati Guild
  • Cleveland Guild
  • Columbia, MO Guild
  • Columbus, OH Guild
  • Dallas Guild
  • Dayton Guild
  • Denver Guild
  • Des Moines Guild
  • Detroit Guild
  • Edmonton, AB Guild
  • Fargo-Valley City Guild
  • Fresno Guild
  • Ft. Worth Guild
  • Gainesville-Tallahassee Guild
  • Grand Rapids Guild
  • Halifax, NS Guild
  • Hamilton, ON Guild
  • Hartford Guild
  • Hershey Guild
  • Hudson Valley Guild
  • Houston Guild
  • Indianapolis Guild
  • Jacksonville Guild
  • Kansas City Guild
  • Knoxville Guild
  • Lansing Guild
  • London, ON Guild
  • Los Angeles Guild
  • Milwaukee / Madison Guild
  • Minneapolis / Twin Cities Guild
  • Montreal / Quebec City Guild
  • Nashville Guild
  • Newark Guild
  • NYC & Long Island Guild
  • Oakland / San Francisco Guild
  • Omaha Guild
  • Orange County Guild
  • Orlando Guild
  • Ottawa, ON Guild
  • Philadelphia Guild
  • Phoenix Guild
  • Pittsburgh Guild
  • Portland, OR Guild
  • Portland, ME Guild
  • Raleigh-Durham Guild
  • Richmond Guild
  • Sacramento Guild
  • Salt Lake City Guild
  • San Antonio Guild
  • San Diego Guild
  • San Juan, PR Guild
  • Saskatchewan Guild
  • Seattle Guild
  • Spokane Guild
  • Springfield-Champaign, IL Guild
  • Springfield, MA Guild
  • St. Louis Guild
  • Syracuse Guild
  • Tampa / St. Petersburg Guild
  • Toronto, ON Guild
  • Vancouver, BC Guild
  • Washington DC Guild
  • Winnipeg, MB Guild
  • Denver Extra Life Guild's Events
  • Extra Life Akron's Events

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Hospital


Location


Why I "Extra Life"


Interests


Twitter


Instagram


Twitch


Mixer


Discord


Blizzard Battletag


Nintendo ID


PSN ID


Steam


Origin


Xbox Gamertag

Found 1 result

  1. Extra Life has grown up last years. Today we got overlays, Extra Life helpers and donations alerts on Streamlabs and Streamelements but what about Discord? nothing that I know. I didn’t find a good way to check my participant or team information directly from my Discord server, I needed to visit the official web site every time I needed to check the info. I started to think a way to get common Extra Life info directly from Discord using simple commands, faster and easy, why? because Extra Life is on Twitch, Twitch is integrated with Discord and some Discord communities are strong and supporting Extra Life, it’s good way to post information about your Extra Life campaign, your donors, your goals, your Extra Life marathon, the Extra Life stream team schedule and more for you members. Possibilities are many. What did I need to do that? A custom bot and a way to get the information. I’m going to share this short tutorial to build your custom bot and use the new Extra Life API to build your own commands. This API was released some weeks ago. Requirements: - A Discord account - Basic development knowledge about Node.js and Javascript. https://nodejs.org/en/download/ - The Extra Life API: https://www.npmjs.com/package/extra-life-api Note: I always suggest to use a test environment. There is not risk about security issues because you’re using a Discord API, Extra Life API and you’re setting your bot permissions. You can add and remove your bot anytime. This is not an Extra Life official bot, I'm explaining how you can build one yourself. The Extra Life bot name and logo are friendly examples for this tutorial. Please if you want to use them ask for approval to staff team or team leaders. The first part of this tutorial is show you how you can build your Discord Application (your bot), you will find different ways to do this on internet, use whatever best suits for you. You will add your bot to your Discord Server, later you will be able to build your Extra Life commands as your preference. Here we go: PART 1 I'm assuming you already have a Discord account, if not create it please. Go to Discord Developer Portal and select applications: https://discordapp.com/developers/applications/ Click on new Application Write a name and create General info tab: Upload a picture, complete the description (optional) and save the changes. Go to bot tab and click on add bot. After confirmation your bot will have visibility with Discord. After bot creation. You will see a confirmation a new options available. Now your bot has a token, this works like a password so take care of it. You can regenerate it any time in case your security is compromised. This token will allow you to connect your bot with Discord when you start to build your commands. Go to oauth tab. We’re using a bot application so our scope is “bot” and set your permissions. on the permissions you set like any other bot (Dyno, Mee6, couchbot, etc). I’m using few here permissions because I don’t want the bot manage channels, roles, kick members or these kind of administration actions. The bot just use commands to get Extra Life information. If you want to give your bot more permissions for administrations purposes is up to you. The red number are your permissions, it will change each time you add or remove permissions, you can calculate this number on bot tab too. https://discordapp.com/api/oauth2/authorize?client_id=597566571417960488&permissions=75776&scope=bot Copy the link and paste it on your browser. See what happens. If you did all correctly, you will authorize your new bot to join your Discord server with the permissions you set before. It’s clear, isn't it? Now choose your Discord server and set authorize. You receive the following confirmation. Go to your Discord Server and check if the bot is joined. It should be there offline. Alright your bot is joined and offline. Why offline? because you used the Discord API to build your bot but it still wasn’t developed to listen messages, read commands and reply. What did you learn here? Use the Discord API to build your bot. Understand how permissions work and are set. Understand how bot invitations work. Understand how your bot joins on your Discord server. Next chapter I’m going to explain how you should install Node.js to start coding your bot. You will use your bot token to login on Discord, it will be online and ready to listen for messages. If you enjoyed this content, please share it!!!
×
×
  • Create New...