Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. skifli

    Python I'm writing a bot so that people don't give themselves money from the bot unbelievaboat?

    There is no way to make unbelievaboat accept commands from a bot. Try this (there has to be a role called 'Banned' in the server): import discord from discord.ext import commands from time import sleep client = discord.Client() client = commands.Bot(command_prefix="!") @client.event async...
  2. skifli

    C# Hi. I am a beginer coder and I need some help. Can someone please explain to me exactly how this code works, line fore line explanation please. I

    Not exactly. Every iteration of the while loop, on line 26, every character that is the same as the first character is removed (including the first character).
  3. skifli

    Python I'm writing a bot so that people don't give themselves money from the bot unbelievaboat?

    Hmm, maybe unbelievaboat doesn't respond to commands sent by bots?
  4. skifli

    C# Hi. I am a beginer coder and I need some help. Can someone please explain to me exactly how this code works, line fore line explanation please. I

    So basically 'j' is a number, so the if j was equal to 3, the 'j'th character of the user's input would be the 3rd character of the user's input. Sorry for the confusion, I just didn't know how else to put it.
  5. skifli

    C# Hi. I am a beginer coder and I need some help. Can someone please explain to me exactly how this code works, line fore line explanation please. I

    First 'Vpišite poved :' is printed to the console in line 8. Then, the input from the user is received as a string on line 9. On line 12, all spaces in the user's input are removed. On line 14, a while loop is initiated, if the user's input wasn't empty. On line 16, the first character of the...
  6. skifli

    Python I'm writing a bot so that people don't give themselves money from the bot unbelievaboat?

    This should work import discord from discord.ext import commands from time import sleep client = discord.Client() client = commands.Bot(command_prefix="!") @client.event async def on_ready(): print(f"Logged in as {client.user} (ID: {client.user.id}).") @client.command(name="add-money")...
  7. skifli

    Fine.

    Fine.
  8. skifli

    Python I need an understanding in this scenario

    I think for task 1 you should use a boolean for whether or not they wish to work as a volunteer. For task 2 you could maybe use a for loop to loop through all the participants in the selected category. For task 3 you could get the user's name etc. in a while loop, and if they say the inputted...
  9. skifli

    Python I need an understanding in this scenario

    Task 1: - For each new member: get their first name; last name; whether or not they wish to work as a volunteer; if they do want to work as a volunteer, where do they want to work from (choose from: working at the pier entrance gate; the gift shop; painting and decorating), and have they paid...
  10. skifli

    HTML Would like output to appear without input?

    That's what he wants. The page is a trip cost calculator based on the users inputs. However, when the page is loaded there are preset values. @tetherton wants the box where the total cost is shown to the user to have already calculated the total cost using the preset inputs.
  11. skifli

    HTML Would like output to appear without input?

    I think what he means is that when the page is loaded, the total cost will already be calculated using the preset values.
  12. skifli

    Staff Changes thread

    Thanks.
  13. skifli

    What is everyone working on?

    I'm currently working on a text-based RPG game, which you can find here. It is a WIP, and requires you to be logged into replit to use (the save system works based on your replit username).
  14. skifli

    Fun activity Say hello... in a coding language!

    Nice code. I've made my own piece of code that'll automatically get the username of the last person to comment, and print it out with an animation. from sys import stdout from time import sleep from bs4 import BeautifulSoup from requests import get def printf(text: str, pause=0.05): for...
  15. skifli

    Fun activity Say hello... in a coding language!

    from sys import stdout from time import sleep # Function to animate the printing of text. def printf(text, pause=0.05): for character in text: stdout.write(character) stdout.flush() sleep(pause) printf("Hello, Apollyon.")
  16. skifli

    Java Two small Java games by Markus "Notch" Persson

    Thanks for this, Breaking The Tower seems like quite a fun game.
  17. skifli

    Dark

    Dark
  18. skifli

    Fun activity Modding games

    Yeah, MCreator. However, I really prefer Fabric over Forge since it's faster, and the Fabric community is nicer, so I had to install this plugin to make the mod for Fabric.
  19. skifli

    Fun activity Modding games

    I vaguely remember making a mod for Minecraft that added back the function to craft enchanted golden apples.
  20. skifli

    Fun activity Does Log4j affect our WordPress site?

    Useful site: https://www.yokoco.com/will-the-log4j-vulnerability-affect-my-wordpress-website/
Back
Top Bottom