Wikipedia says:
In video games, this usually means a character controlled by the computer through artificial intelligence.
~https://en.wikipedia.org/wiki/Non-player_characterIn video games, a bot is a type of weak AI expert system software which for each instance of the program controls a player [...]
~https://en.wikipedia.org/wiki/Video_game_bot
However as far as I know such bots & NPCs are way too hard-coded or explicitly coded to be accurately called "artificial intelligence".
Mainly most often they lack the ability to learn dynamically from the player. Arthur Samuel calls "artificial intelligence" The "field of study that gives computers the ability to learn without being explicitly programmed" (1959).
So to what extend can bots and/or NPCs be called "artificial intelligence" if they (or a subset of them) can be designated as such?