First of all, you should make sure that you have entered your token correctly. If there is still a problem, close your server ports or activate the appropriate port. If there is still a problem, check the codes used to run your bot. There may be a typo (compare it with the shared sample codes). If the problem still persists, check a working one. If you have a bot project, try its token.