soaking your foot in warm salt water will also help. Surgical intervention may be required if you let it go to long without attention to it, i had both of mine removed twice, and had to have the nail bed altered to prevent further problems, but soaking it in salt water will help, and you may require the antibiotics like the above comment to clear up any infection.
Hello!
You should try to cut and trim and file your toe nail as close as possible.
Clean your wound with povidone iodine solution and apply neosporin ointment till your infection subsides.
If you still have discharging pus after couple of days then get your toe examined and consider oral antibiotics.
Take care!